diff --git a/internal/network/http_client_impl.cc b/internal/network/http_client_impl.cc index ef74495a..a5dbacc1 100644 --- a/internal/network/http_client_impl.cc +++ b/internal/network/http_client_impl.cc @@ -38,7 +38,7 @@ void NearbyHttpClient::StartRequest( CleanThreads(); std::future http_thread = std::async( - std::launch::async, [&, request, callback = std::move(callback)]() { + std::launch::async, [=]() { NEARBY_LOGS(INFO) << __func__ << ": Start async request to url=" << request.GetUrl().GetUrlPath(); absl::StatusOr response = InternalGetResponse(request);