Skip to content

Commit

Permalink
remove moreToCome as an option on the request - only on the reply
Browse files Browse the repository at this point in the history
  • Loading branch information
aditi-khare-mongoDB committed Sep 12, 2024
1 parent 7ca5e03 commit 8243f99
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/cmap/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export interface OpQueryOptions extends CommandOptions {
secondaryOk?: boolean;

requestId?: number;
moreToCome?: boolean;
exhaustAllowed?: boolean;
}

Expand Down Expand Up @@ -412,7 +411,6 @@ export interface OpMsgOptions {
ignoreUndefined: boolean;
checkKeys: boolean;
maxBsonSize: number;
moreToCome: boolean;
exhaustAllowed: boolean;
readPreference: ReadPreference;
}
Expand Down Expand Up @@ -465,7 +463,7 @@ export class OpMsgRequest {

// flags
this.checksumPresent = false;
this.moreToCome = options.moreToCome || command.writeConcern?.w === 0 || false;
this.moreToCome = command.writeConcern?.w === 0 || false;
this.exhaustAllowed =
typeof options.exhaustAllowed === 'boolean' ? options.exhaustAllowed : false;
}
Expand Down

0 comments on commit 8243f99

Please sign in to comment.