Skip to content

Commit

Permalink
revert erroneous rebase changes
Browse files Browse the repository at this point in the history
  • Loading branch information
W-A-James committed Jun 5, 2024
1 parent f3ca132 commit 09f55e5
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 16 deletions.
1 change: 0 additions & 1 deletion src/cmap/connection_pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,6 @@ export class ConnectionPool extends TypedEventEmitter<ConnectionPoolEvents> {
}
} else {
timeout = Timeout.expires(waitQueueTimeoutMS);
clearTimeout = true;
}

const waitQueueMember: WaitQueueMember = {
Expand Down
9 changes: 0 additions & 9 deletions src/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -768,15 +768,6 @@ export class MongoOperationTimeoutError extends MongoRuntimeError {
}
}

/**
* @internal
*/
export class MongoOperationTimeoutError extends MongoRuntimeError {
override get name(): string {
return 'MongoOperationTimeoutError';
}
}

/**
* An error thrown when the user attempts to add options to a cursor that has already been
* initialized
Expand Down
3 changes: 2 additions & 1 deletion src/operations/find.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ export class FindOperation extends CommandOperation<Document> {
...this.options,
...this.bsonOptions,
documentsReturnedIn: 'firstBatch',
sessiontimeout: this.timeout
session,
timeout: this.timeout
},
undefined
);
Expand Down
3 changes: 0 additions & 3 deletions src/operations/operation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ export abstract class AbstractOperation<TResult = any> {
/** @internal */
timeoutMS?: number;

/** @internal */
serverSelectionTimeout?: Timeout;

[kSession]: ClientSession | undefined;

constructor(options: OperationOptions = {}) {
Expand Down
2 changes: 0 additions & 2 deletions src/sdam/topology.ts
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,6 @@ export class Topology extends TypedEventEmitter<TopologyEvents> {
}
const serverSelectionTimeoutMS = options.serverSelectionTimeoutMS ?? 0;
let timeout: Timeout | null;

if (options.timeout) {
// CSOT Enabled
if (options.timeout.duration > 0 || serverSelectionTimeoutMS > 0) {
Expand All @@ -582,7 +581,6 @@ export class Topology extends TypedEventEmitter<TopologyEvents> {
}
} else {
timeout = Timeout.expires(serverSelectionTimeoutMS);
clearTimeout = true;
}

const isSharded = this.description.type === TopologyType.Sharded;
Expand Down

0 comments on commit 09f55e5

Please sign in to comment.