Code review changes.

pull/12374/head
Mark D. Roth 8 years ago
parent 1a8bb821f4
commit 61b26f97b0
  1. 2
      include/grpc/grpc_security.h
  2. 4
      src/cpp/client/secure_credentials.cc

@ -249,7 +249,7 @@ typedef struct {
void *reserved;
} grpc_auth_metadata_context;
/** Maximum number of credentials returnable by a credentials plugin via
/** Maximum number of metadata entries returnable by a credentials plugin via
a synchronous return. */
#define GRPC_METADATA_CREDENTIALS_PLUGIN_SYNC_MAX 4

@ -178,12 +178,12 @@ int MetadataCredentialsPluginWrapper::GetMetadata(
w->thread_pool_->Add(
std::bind(&MetadataCredentialsPluginWrapper::InvokePlugin, w, context,
cb, user_data, nullptr, nullptr, nullptr, nullptr));
return false;
return 0;
} else {
// Synchronous return.
w->InvokePlugin(context, cb, user_data, creds_md, num_creds_md, status,
error_details);
return true;
return 1;
}
}

Loading…
Cancel
Save