Skip to content

Commit 84de096

Browse files
committed
fix(NODE-6174): use client.s.options in session
1 parent 65c9267 commit 84de096

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sessions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export class ClientSession extends TypedEventEmitter<ClientSessionEvents> {
174174
this.sessionPool = sessionPool;
175175
this.hasEnded = false;
176176
this.clientOptions = clientOptions;
177-
this.timeoutMS = options.defaultTimeoutMS ?? client.options?.timeoutMS;
177+
this.timeoutMS = options.defaultTimeoutMS ?? client.s.options?.timeoutMS;
178178

179179
this.explicit = !!options.explicit;
180180
this[kServerSession] = this.explicit ? this.sessionPool.acquire() : null;

0 commit comments

Comments
 (0)