Skip to content

Commit 77cce54

Browse files
committed
Fix performance benchmarks
Change-Id: I71f18923ee5d952d481a3910d605b48559c90e63
1 parent 55ec089 commit 77cce54

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

benchmark/multi.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import (
1010
"context"
1111
"errors"
1212

13-
"github.com/mongodb/mongo-go-driver/bson"
1413
"github.com/mongodb/mongo-go-driver/x/bsonx"
1514
)
1615

@@ -59,9 +58,7 @@ func MultiFindMany(ctx context.Context, tm TimerManager, iters int) error {
5958
if err != nil {
6059
return err
6160
}
62-
var r bson.Raw
63-
r = cursor.DecodeBytes()
64-
if len(r) == 0 {
61+
if len(cursor.Current) == 0 {
6562
return errors.New("error retrieving document")
6663
}
6764

0 commit comments

Comments
 (0)