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 {
7878 new RunAdminCommandOperation ( command , {
7979 ...resolveBSONOptions ( options ) ,
8080 session : options ?. session ,
81- readPreference : options ?. readPreference
81+ readPreference : options ?. readPreference ,
82+ timeoutMS : options ?. timeoutMS
8283 } )
8384 ) ;
8485 }
Original file line number Diff line number Diff line change @@ -272,6 +272,7 @@ export class Db {
272272 this . client ,
273273 new RunCommandOperation ( this , command , {
274274 ...resolveBSONOptions ( options ) ,
275+ timeoutMS : options ?. timeoutMS ,
275276 session : options ?. session ,
276277 readPreference : options ?. readPreference
277278 } )
Original file line number Diff line number Diff line change @@ -583,6 +583,7 @@ export class Topology extends TypedEventEmitter<TopologyEvents> {
583583 }
584584
585585 const { promise : serverPromise , resolve, reject } = promiseWithResolvers < Server > ( ) ;
586+ console . log ( options . timeout ?. remainingTime , options . serverSelectionTimeoutMS ) ;
586587 const timeout = options . timeout
587588 ? Timeout . expires (
588589 Timeout . min ( options . timeout . remainingTime , options . serverSelectionTimeoutMS ?? 0 )
You can’t perform that action at this time.
0 commit comments