summaryrefslogtreecommitdiff
path: root/src/mongo/client/connpool.cpp
diff options
context:
space:
mode:
authorclang-format 12.0.1 <>2023-02-10 04:44:29 -0800
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-02-11 08:00:01 +0000
commitf63255ee677ecae5896d6f35dd712ed60ae8c39a (patch)
tree97ffffa8d6f9e1a131aeb1ccc1d42f133f8407fd /src/mongo/client/connpool.cpp
parent375366e3f317d18717df24f861b09c4d2f8fb27f (diff)
downloadmongo-f63255ee677ecae5896d6f35dd712ed60ae8c39a.tar.gz
SERVER-72197 Run clang-format 12.0.1 on the codebase
Signed-off-by: Ryan Egesdahl <ryan.egesdahl@mongodb.com>
Diffstat (limited to 'src/mongo/client/connpool.cpp')
-rw-r--r--src/mongo/client/connpool.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/client/connpool.cpp b/src/mongo/client/connpool.cpp
index 984751d1767..d155e238c2c 100644
--- a/src/mongo/client/connpool.cpp
+++ b/src/mongo/client/connpool.cpp
@@ -264,7 +264,9 @@ void PoolForHost::initializeHostName(const std::string& hostName) {
}
void PoolForHost::waitForFreeConnection(int timeout, stdx::unique_lock<Latch>& lk) {
- auto condition = [&] { return (numInUse() < _maxInUse || _inShutdown.load()); };
+ auto condition = [&] {
+ return (numInUse() < _maxInUse || _inShutdown.load());
+ };
if (timeout > 0) {
stdx::chrono::seconds timeoutSeconds{timeout};