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

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

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

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

Loading…
Cancel
Save