Skip to content

Commit 85dc96c

Browse files
committed
修复bug
1 parent 24a6938 commit 85dc96c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ShardingCore/Sharding/Enumerators/StreamMergeAsync/OneAtMostElementStreamMergeAsyncEnumerator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace ShardingCore.Sharding.Enumerators.StreamMergeAsync
88
{
99
internal class OneAtMostElementStreamMergeAsyncEnumerator<T> : IStreamMergeAsyncEnumerator<T>
1010
{
11-
private int _moveIndex = 0;
11+
private int _moveIndex = -1;
1212
private T _constantElement;
1313

1414
public OneAtMostElementStreamMergeAsyncEnumerator(IStreamMergeAsyncEnumerator<T> streamMergeAsyncEnumerator)
@@ -79,7 +79,7 @@ public bool HasElement()
7979

8080
public void Reset()
8181
{
82-
throw new NotImplementedException();
82+
_moveIndex = 0;
8383
}
8484

8585
object IEnumerator.Current => Current;

0 commit comments

Comments
 (0)