We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff10bb5 commit 2bace00Copy full SHA for 2bace00
src/timeout.ts
@@ -118,7 +118,6 @@ export class Timeout extends Promise<never> {
118
* Implement maxTimeMS calculation detailed in https://github.com/mongodb/specifications/blob/master/source/client-side-operations-timeout/client-side-operations-timeout.md#command-execution
119
* */
120
public getMaxTimeMS(minRoundTripTime: number): any {
121
- console.log(`remaining time: ${this.remainingTime}, minRTT: ${minRoundTripTime}`);
122
if (!Number.isFinite(this.remainingTime)) return 0;
123
if (minRoundTripTime < this.remainingTime) return this.remainingTime - minRoundTripTime;
124
throw CSOTError.from(this.timeoutError);
0 commit comments