Skip to content

Commit d0f0267

Browse files
committed
refactor: fix InMemoryStream warning
1 parent 4bc2ca5 commit d0f0267

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/WeihanLi.Common/Helpers/InMemoryStream.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ public async IAsyncEnumerable<StreamMessage<T>> FetchAsync(T lastId, int count,
129129
{
130130
yield break;
131131
}
132+
await Task.CompletedTask;
132133
if (_comparer.Compare(message.Id, lastId) > 0)
133134
{
134135
yield return message;
@@ -156,9 +157,9 @@ public Task<StreamInfo<T>> InfoAsync(CancellationToken cancellationToken = defau
156157
{
157158
var streamInfo = new StreamInfo<T>
158159
{
159-
MinId = default,
160+
MinId = default!,
160161
MinTimestamp = default,
161-
MaxId = default,
162+
MaxId = default!,
162163
MaxTimestamp = default,
163164
Count = _messages.Count
164165
};

0 commit comments

Comments
 (0)