Fix a number of Auth crashes by upgrading the callbacks to almost pure functions

PiperOrigin-RevId: 532556608
This commit is contained in:
hai007
2023-05-16 13:26:27 -07:00
committed by Copybara-Service
parent e4be4677c4
commit 275743e462
+1 -1
View File
@@ -38,7 +38,7 @@ void NearbyHttpClient::StartRequest(
CleanThreads();
std::future<void> 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<HttpResponse> response = InternalGetResponse(request);