Skip to content

Commit 3e32f7e

Browse files
author
Divjot Arora
committed
update ExecuteExhaust docs
1 parent b36e9f0 commit 3e32f7e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

x/mongo/driver/operation_exhaust.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ import (
1313
"go.mongodb.org/mongo-driver/x/mongo/driver/description"
1414
)
1515

16-
// ExecuteExhaust gets a connection from the provided deployment and reads a response from it. This will error if the
17-
// connection CurrentlyStreaming function returns false.
16+
// ExecuteExhaust reads a response from the provided StreamerConnection. This will error if the connection's
17+
// CurrentlyStreaming function returns false.
1818
func (op Operation) ExecuteExhaust(ctx context.Context, conn StreamerConnection, scratch []byte) error {
1919
if !conn.CurrentlyStreaming() {
20-
return errors.New("exhaust read must be done with a Streamer that is currently streaming")
20+
return errors.New("exhaust read must be done with a connection that is currently streaming")
2121
}
2222

2323
scratch = scratch[:0]

0 commit comments

Comments
 (0)