clang-format

pull/20660/head
Vijay Pai 6 years ago
parent 5a88028c89
commit fe30ef5489
  1. 6
      src/cpp/common/tls_credentials_options_util.cc
  2. 4
      src/cpp/ext/proto_server_reflection_plugin.cc
  3. 4
      src/cpp/server/channelz/channelz_service_plugin.cc
  4. 9
      src/cpp/server/server_cc.cc

@ -101,8 +101,7 @@ void TlsCredentialReloadArgDestroyContext(void* context) {
* config. They populate a C server authorization check arg with the result
* of a C++ server authorization check schedule/cancel API. **/
int TlsServerAuthorizationCheckConfigCSchedule(
void* /*config_user_data*/,
grpc_tls_server_authorization_check_arg* arg) {
void* /*config_user_data*/, grpc_tls_server_authorization_check_arg* arg) {
if (arg == nullptr || arg->config == nullptr ||
arg->config->context() == nullptr) {
gpr_log(GPR_ERROR,
@ -118,8 +117,7 @@ int TlsServerAuthorizationCheckConfigCSchedule(
}
void TlsServerAuthorizationCheckConfigCCancel(
void* /*config_user_data*/,
grpc_tls_server_authorization_check_arg* arg) {
void* /*config_user_data*/, grpc_tls_server_authorization_check_arg* arg) {
if (arg == nullptr || arg->config == nullptr ||
arg->config->context() == nullptr) {
gpr_log(GPR_ERROR,

@ -41,8 +41,8 @@ void ProtoServerReflectionPlugin::Finish(grpc::ServerInitializer* si) {
reflection_service_->SetServiceList(si->GetServiceList());
}
void ProtoServerReflectionPlugin::ChangeArguments(
const grpc::string& /*name*/, void* /*value*/) {}
void ProtoServerReflectionPlugin::ChangeArguments(const grpc::string& /*name*/,
void* /*value*/) {}
bool ProtoServerReflectionPlugin::has_sync_methods() const {
if (reflection_service_) {

@ -41,8 +41,8 @@ class ChannelzServicePlugin : public ::grpc::ServerBuilderPlugin {
void Finish(grpc::ServerInitializer* /*si*/) override {}
void ChangeArguments(const grpc::string& /*name*/,
void* /*value*/) override {}
void ChangeArguments(const grpc::string& /*name*/, void* /*value*/) override {
}
bool has_sync_methods() const override {
if (channelz_service_) {

@ -185,11 +185,10 @@ void ServerInterface::BaseAsyncRequest::
// Queue a tag which will be returned immediately
grpc_core::ExecCtx exec_ctx;
grpc_cq_begin_op(notification_cq_->cq(), this);
grpc_cq_end_op(notification_cq_->cq(), this, GRPC_ERROR_NONE,
[](void* /*arg*/, grpc_cq_completion* completion) {
delete completion;
},
nullptr, new grpc_cq_completion());
grpc_cq_end_op(
notification_cq_->cq(), this, GRPC_ERROR_NONE,
[](void* /*arg*/, grpc_cq_completion* completion) { delete completion; },
nullptr, new grpc_cq_completion());
}
ServerInterface::RegisteredAsyncRequest::RegisteredAsyncRequest(

Loading…
Cancel
Save