Skip to content

Commit fcb43e2

Browse files
committed
remove redundant NoteSuccess().
1 parent 30383cb commit fcb43e2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

internal/verifier/compare.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"go.mongodb.org/mongo-driver/bson"
1212
"go.mongodb.org/mongo-driver/mongo"
1313
"golang.org/x/exp/slices"
14+
"golang.org/x/sync/errgroup"
1415
)
1516

1617
const readTimeout = 10 * time.Minute
@@ -359,10 +360,6 @@ func iterateCursorToChannel(
359360
writer <- slices.Clone(cursor.Current)
360361
}
361362

362-
if cursor.Err() == nil {
363-
state.NoteSuccess()
364-
}
365-
366363
close(writer)
367364

368365
return errors.Wrap(cursor.Err(), "failed to iterate cursor")

0 commit comments

Comments
 (0)