Don't use default capture

pull/17090/head
Yash Tibrewal 6 years ago
parent e08a2b387a
commit f8561952e9
  1. 2
      src/cpp/client/secure_credentials.cc
  2. 2
      src/cpp/server/secure_server_credentials.cc

@ -228,7 +228,7 @@ int MetadataCredentialsPluginWrapper::GetMetadata(
}
if (w->plugin_->IsBlocking()) {
// Asynchronous return.
w->thread_pool_->Add([=]() {
w->thread_pool_->Add([w, context, cb, user_data] {
w->MetadataCredentialsPluginWrapper::InvokePlugin(
context, cb, user_data, nullptr, nullptr, nullptr, nullptr);
});

@ -43,7 +43,7 @@ void AuthMetadataProcessorAyncWrapper::Process(
return;
}
if (w->processor_->IsBlocking()) {
w->thread_pool_->Add([=]() {
w->thread_pool_->Add([w, context, md, num_md, cb, user_data] {
w->AuthMetadataProcessorAyncWrapper::InvokeProcessor(context, md, num_md,
cb, user_data);
});

Loading…
Cancel
Save