Skip to content

Commit 679c02c

Browse files
committed
add omitMaxTimeMS
1 parent af02eb8 commit 679c02c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cursor/run_command_cursor.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ export class RunCommandCursor extends AbstractCursor {
131131
const getMoreOperation = new GetMoreOperation(this.namespace, this.id!, this.server!, {
132132
...this.cursorOptions,
133133
session: this.session,
134-
...this.getMoreOptions
134+
...this.getMoreOptions,
135+
omitMaxTimeMS: this.cursorOptions.timeoutMode != null
135136
});
136137

137138
return await executeOperation(this.client, getMoreOperation, this.timeoutContext);

0 commit comments

Comments
 (0)