File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,8 @@ export class Admin {
78
78
new RunAdminCommandOperation ( command , {
79
79
...resolveBSONOptions ( options ) ,
80
80
session : options ?. session ,
81
- readPreference : options ?. readPreference
81
+ readPreference : options ?. readPreference ,
82
+ timeoutMS : options ?. timeoutMS
82
83
} )
83
84
) ;
84
85
}
Original file line number Diff line number Diff line change @@ -272,6 +272,7 @@ export class Db {
272
272
this . client ,
273
273
new RunCommandOperation ( this , command , {
274
274
...resolveBSONOptions ( options ) ,
275
+ timeoutMS : options ?. timeoutMS ,
275
276
session : options ?. session ,
276
277
readPreference : options ?. readPreference
277
278
} )
Original file line number Diff line number Diff line change @@ -583,6 +583,7 @@ export class Topology extends TypedEventEmitter<TopologyEvents> {
583
583
}
584
584
585
585
const { promise : serverPromise , resolve, reject } = promiseWithResolvers < Server > ( ) ;
586
+ console . log ( options . timeout ?. remainingTime , options . serverSelectionTimeoutMS ) ;
586
587
const timeout = options . timeout
587
588
? Timeout . expires (
588
589
Timeout . min ( options . timeout . remainingTime , options . serverSelectionTimeoutMS ?? 0 )
You can’t perform that action at this time.
0 commit comments