File tree 5 files changed +2
-16
lines changed
5 files changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -388,7 +388,6 @@ export class ConnectionPool extends TypedEventEmitter<ConnectionPoolEvents> {
388
388
}
389
389
} else {
390
390
timeout = Timeout . expires ( waitQueueTimeoutMS ) ;
391
- clearTimeout = true ;
392
391
}
393
392
394
393
const waitQueueMember : WaitQueueMember = {
Original file line number Diff line number Diff line change @@ -768,15 +768,6 @@ export class MongoOperationTimeoutError extends MongoRuntimeError {
768
768
}
769
769
}
770
770
771
- /**
772
- * @internal
773
- */
774
- export class MongoOperationTimeoutError extends MongoRuntimeError {
775
- override get name ( ) : string {
776
- return 'MongoOperationTimeoutError' ;
777
- }
778
- }
779
-
780
771
/**
781
772
* An error thrown when the user attempts to add options to a cursor that has already been
782
773
* initialized
Original file line number Diff line number Diff line change @@ -112,7 +112,8 @@ export class FindOperation extends CommandOperation<Document> {
112
112
...this . options ,
113
113
...this . bsonOptions ,
114
114
documentsReturnedIn : 'firstBatch' ,
115
- sessiontimeout : this . timeout
115
+ session,
116
+ timeout : this . timeout
116
117
} ,
117
118
undefined
118
119
) ;
Original file line number Diff line number Diff line change @@ -67,9 +67,6 @@ export abstract class AbstractOperation<TResult = any> {
67
67
/** @internal */
68
68
timeoutMS ?: number ;
69
69
70
- /** @internal */
71
- serverSelectionTimeout ?: Timeout ;
72
-
73
70
[ kSession ] : ClientSession | undefined ;
74
71
75
72
constructor ( options : OperationOptions = { } ) {
Original file line number Diff line number Diff line change @@ -565,7 +565,6 @@ export class Topology extends TypedEventEmitter<TopologyEvents> {
565
565
}
566
566
const serverSelectionTimeoutMS = options . serverSelectionTimeoutMS ?? 0 ;
567
567
let timeout : Timeout | null ;
568
-
569
568
if ( options . timeout ) {
570
569
// CSOT Enabled
571
570
if ( options . timeout . duration > 0 || serverSelectionTimeoutMS > 0 ) {
@@ -582,7 +581,6 @@ export class Topology extends TypedEventEmitter<TopologyEvents> {
582
581
}
583
582
} else {
584
583
timeout = Timeout . expires ( serverSelectionTimeoutMS ) ;
585
- clearTimeout = true ;
586
584
}
587
585
588
586
const isSharded = this . description . type === TopologyType . Sharded ;
You can’t perform that action at this time.
0 commit comments