summaryrefslogtreecommitdiff
path: root/src/mongo/client/async_client.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/client/async_client.h')
-rw-r--r--src/mongo/client/async_client.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/client/async_client.h b/src/mongo/client/async_client.h
index fcae5064069..7b7bcc39506 100644
--- a/src/mongo/client/async_client.h
+++ b/src/mongo/client/async_client.h
@@ -61,7 +61,7 @@ public:
ServiceContext* context,
transport::ReactorHandle reactor,
Milliseconds timeout,
- ConnectionMetrics* connectionMetrics, // must remain valid until the future is ready
+ std::shared_ptr<ConnectionMetrics> connectionMetrics,
std::shared_ptr<const transport::SSLConnectionContext> transientSSLContext = nullptr);
Future<executor::RemoteCommandResponse> runCommandRequest(