diff options
Diffstat (limited to 'src/mongo/executor/network_interface_asio_integration_fixture.cpp')
-rw-r--r-- | src/mongo/executor/network_interface_asio_integration_fixture.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/mongo/executor/network_interface_asio_integration_fixture.cpp b/src/mongo/executor/network_interface_asio_integration_fixture.cpp index 76f0e451a71..718904b3acb 100644 --- a/src/mongo/executor/network_interface_asio_integration_fixture.cpp +++ b/src/mongo/executor/network_interface_asio_integration_fixture.cpp @@ -87,15 +87,18 @@ void NetworkInterfaceASIOIntegrationFixture::startCommand( const TaskExecutor::CallbackHandle& cbHandle, RemoteCommandRequest& request, StartCommandCB onFinish) { - net().startCommand(cbHandle, request, onFinish); + net().startCommand(cbHandle, request, onFinish).transitional_ignore(); } Deferred<RemoteCommandResponse> NetworkInterfaceASIOIntegrationFixture::runCommand( const TaskExecutor::CallbackHandle& cbHandle, RemoteCommandRequest& request) { Deferred<RemoteCommandResponse> deferred; - net().startCommand(cbHandle, request, [deferred](RemoteCommandResponse resp) mutable { - deferred.emplace(std::move(resp)); - }); + net() + .startCommand( + cbHandle, + request, + [deferred](RemoteCommandResponse resp) mutable { deferred.emplace(std::move(resp)); }) + .transitional_ignore(); return deferred; } |