From e317e92c9f1f530c35cb85fc698c3e8dfddd72d4 Mon Sep 17 00:00:00 2001 From: auto-revert-processor Date: Sat, 13 May 2023 06:35:42 +0000 Subject: Revert "SERVER-74013 Capture thread number by value in ServerHandlesMultipleClients test (BF-28709)" This reverts commit 169c22878eddfc299e5d200ba8a1344ce16fc439. --- src/mongo/transport/grpc/service_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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); -- cgit v1.2.1