summaryrefslogtreecommitdiff
path: root/src/mongo/executor/connection_pool_asio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/executor/connection_pool_asio.cpp')
-rw-r--r--src/mongo/executor/connection_pool_asio.cpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/mongo/executor/connection_pool_asio.cpp b/src/mongo/executor/connection_pool_asio.cpp
index 7be1874e7b3..2cb395df612 100644
--- a/src/mongo/executor/connection_pool_asio.cpp
+++ b/src/mongo/executor/connection_pool_asio.cpp
@@ -231,18 +231,16 @@ void ASIOConnection::refresh(Milliseconds timeout, RefreshCallback cb) {
cb(this, failedResponse.getStatus());
});
- _global->_impl->_asyncRunCommand(
- op,
- [this, op](std::error_code ec, size_t bytes) {
- cancelTimeout();
+ _global->_impl->_asyncRunCommand(op, [this, op](std::error_code ec, size_t bytes) {
+ cancelTimeout();
- auto cb = std::move(_refreshCallback);
+ auto cb = std::move(_refreshCallback);
- if (ec)
- return cb(this, Status(ErrorCodes::HostUnreachable, ec.message()));
+ if (ec)
+ return cb(this, Status(ErrorCodes::HostUnreachable, ec.message()));
- cb(this, Status::OK());
- });
+ cb(this, Status::OK());
+ });
});
}