Skip to content

Commit f38430b

Browse files
committed
chore: bailey's comments
1 parent 33270d2 commit f38430b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/mongo_client.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -515,8 +515,8 @@ export class MongoClient extends TypedEventEmitter<MongoClientEvents> implements
515515
*
516516
* @remarks
517517
* Calling `connect` is optional since the first operation you perform will call `connect` if it's needed.
518-
* `timeoutMS` specified at the client-level will bound the time any operation can take before throwing a timeout error.
519-
* However, when the operation being run is automatically connecting your `MongoClient` the `timeoutMS` will only be used for the operation portion of task.
518+
* `timeoutMS` will bound the time any operation can take before throwing a timeout error.
519+
* However, when the operation being run is automatically connecting your `MongoClient` the `timeoutMS` will not apply to the time taken to connect the MongoClient.
520520
* This means the time to setup the `MongoClient` does not count against `timeoutMS`.
521521
* If you are using `timeoutMS` we recommend connecting your client explicitly in advance of any operation to avoid this inconsistent execution time.
522522
*
@@ -718,8 +718,8 @@ export class MongoClient extends TypedEventEmitter<MongoClientEvents> implements
718718
*
719719
* @remarks
720720
* Calling `connect` is optional since the first operation you perform will call `connect` if it's needed.
721-
* `timeoutMS` specified at the client-level will bound the time any operation can take before throwing a timeout error.
722-
* However, when the operation being run is automatically connecting your `MongoClient` the `timeoutMS` will only be used for the operation portion of task.
721+
* `timeoutMS` will bound the time any operation can take before throwing a timeout error.
722+
* However, when the operation being run is automatically connecting your `MongoClient` the `timeoutMS` will not apply to the time taken to connect the MongoClient.
723723
* This means the time to setup the `MongoClient` does not count against `timeoutMS`.
724724
* If you are using `timeoutMS` we recommend connecting your client explicitly in advance of any operation to avoid this inconsistent execution time.
725725
*

0 commit comments

Comments
 (0)