Skip to content

Commit 33151e0

Browse files
committed
CSHARP-1528: Fix ms reported in error message for TimeoutException from AcquireConnection.
1 parent ec7168c commit 33151e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MongoDB.Driver.Core/Core/ConnectionPools/ExclusiveConnectionPool.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ public void CheckingOutConnection()
411411
throw MongoWaitQueueFullException.ForConnectionPool(_pool._endPoint);
412412
}
413413

414-
_stopwatch = new Stopwatch();
414+
_stopwatch = Stopwatch.StartNew();
415415
}
416416

417417
public IConnectionHandle EnteredPool(bool enteredPool)

0 commit comments

Comments
 (0)