Skip to content

Commit 59eb1b1

Browse files
W-A-Jamesnbbeeken
authored andcommitted
pass timeoutContext through to Connection.command
1 parent 74ae021 commit 59eb1b1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sdam/server.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,8 @@ export class Server extends TypedEventEmitter<ServerEvents> {
300300
// Clone the options
301301
const finalOptions = Object.assign({}, options, {
302302
wireProtocolCommand: false,
303-
directConnection: this.topology.s.options.directConnection
303+
directConnection: this.topology.s.options.directConnection,
304+
timeoutContext: options.timeoutContext
304305
});
305306

306307
// There are cases where we need to flag the read preference not to get sent in

0 commit comments

Comments
 (0)