diff options
-rw-r--r-- | src/mongo/transport/grpc/service_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/transport/grpc/service_test.cpp b/src/mongo/transport/grpc/service_test.cpp index ef306ee6b46..4c466743c0d 100644 --- a/src/mongo/transport/grpc/service_test.cpp +++ b/src/mongo/transport/grpc/service_test.cpp @@ -462,7 +462,7 @@ TEST_F(CommandServiceTest, ServerHandlesMultipleClients) { std::vector<stdx::thread> threads; for (int32_t i = 0; i < 10; i++) { auto clientId = UUID::gen().toString(); - threads.push_back(monitor.spawn([&methodCallback, clientId, i] { + threads.push_back(monitor.spawn([&, clientId] { ::grpc::ClientContext ctx; CommandServiceTestFixtures::addRequiredClientMetadata(ctx); ctx.AddMetadata(std::string{CommandService::kClientIdKey}, clientId); |