diff options
author | clang-format-7.0.1 <adam.martin@10gen.com> | 2019-07-26 18:42:24 -0400 |
---|---|---|
committer | ADAM David Alan Martin <adam.martin@10gen.com> | 2019-07-26 18:42:24 -0400 |
commit | c1a45ebbb0530e3d0201321d725527f1eb83ffce (patch) | |
tree | f523079dc5ded3052eefbdcaae424b7502df5b25 /src/mongo/executor/connection_pool_test_fixture.cpp | |
parent | c9599d8610c3da0b7c3da65667aff821063cf5b9 (diff) | |
download | mongo-c1a45ebbb0530e3d0201321d725527f1eb83ffce.tar.gz |
Apply formatting per `clang-format-7.0.1`
Diffstat (limited to 'src/mongo/executor/connection_pool_test_fixture.cpp')
-rw-r--r-- | src/mongo/executor/connection_pool_test_fixture.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mongo/executor/connection_pool_test_fixture.cpp b/src/mongo/executor/connection_pool_test_fixture.cpp index 6598a029101..0179301255a 100644 --- a/src/mongo/executor/connection_pool_test_fixture.cpp +++ b/src/mongo/executor/connection_pool_test_fixture.cpp @@ -73,9 +73,7 @@ void TimerImpl::fireIfNecessary() { for (auto&& x : timers) { if (_timers.count(x) && (x->_expiration <= x->now())) { - auto execCB = [cb = std::move(x->_cb)](auto&&) mutable { - std::move(cb)(); - }; + auto execCB = [cb = std::move(x->_cb)](auto&&) mutable { std::move(cb)(); }; auto global = x->_global; _timers.erase(x); global->_executor->schedule(std::move(execCB)); @@ -121,7 +119,7 @@ void ConnectionImpl::processSetup() { _setupQueue.pop_front(); _pushSetupQueue.pop_front(); - connPtr->_global->_executor->schedule([ connPtr, callback = std::move(callback) ](auto&&) { + connPtr->_global->_executor->schedule([connPtr, callback = std::move(callback)](auto&&) { auto cb = std::move(connPtr->_setupCallback); connPtr->indicateUsed(); cb(connPtr, callback()); @@ -151,7 +149,7 @@ void ConnectionImpl::processRefresh() { _refreshQueue.pop_front(); _pushRefreshQueue.pop_front(); - connPtr->_global->_executor->schedule([ connPtr, callback = std::move(callback) ](auto&&) { + connPtr->_global->_executor->schedule([connPtr, callback = std::move(callback)](auto&&) { auto cb = std::move(connPtr->_refreshCallback); connPtr->indicateUsed(); cb(connPtr, callback()); |