File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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.
1818func (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 ]
You can’t perform that action at this time.
0 commit comments