Fix clang format issues

pull/18419/head
Karthik Ravi Shankar 6 years ago
parent b8713cf08e
commit fc50caf725
  1. 10
      include/grpcpp/ext/server_load_reporting.h
  2. 5
      include/grpcpp/ext/server_load_reporting_impl.h
  3. 3
      src/cpp/server/load_reporter/load_reporting_service_server_builder_option.cc

@ -25,11 +25,15 @@ namespace grpc {
namespace load_reporter {
namespace experimental {
typedef ::grpc_impl::load_reporter::experimental::LoadReportingServiceServerBuilderOption LoadReportingServiceServerBuilderOption;
typedef ::grpc_impl::load_reporter::experimental::
LoadReportingServiceServerBuilderOption
LoadReportingServiceServerBuilderOption;
static inline void AddLoadReportingCost(grpc::ServerContext* ctx,
const grpc::string& cost_name, double cost_value) {
::grpc_impl::load_reporter::experimental::AddLoadReportingCost(ctx, cost_name, cost_value);
const grpc::string& cost_name,
double cost_value) {
::grpc_impl::load_reporter::experimental::AddLoadReportingCost(ctx, cost_name,
cost_value);
}
} // namespace experimental

@ -34,7 +34,8 @@ namespace experimental {
// enable the feature, please make sure the binary builds with the
// grpcpp_server_load_reporting library and set this option in the
// ServerBuilder.
class LoadReportingServiceServerBuilderOption : public grpc::ServerBuilderOption {
class LoadReportingServiceServerBuilderOption
: public grpc::ServerBuilderOption {
public:
void UpdateArguments(::grpc::ChannelArguments* args) override;
void UpdatePlugins(std::vector<std::unique_ptr<::grpc::ServerBuilderPlugin>>*
@ -48,6 +49,6 @@ void AddLoadReportingCost(grpc::ServerContext* ctx,
} // namespace experimental
} // namespace load_reporter
} // namespace grpc
} // namespace grpc_impl
#endif // GRPCPP_EXT_SERVER_LOAD_REPORTING_IMPL_H

@ -33,7 +33,8 @@ void LoadReportingServiceServerBuilderOption::UpdateArguments(
void LoadReportingServiceServerBuilderOption::UpdatePlugins(
std::vector<std::unique_ptr<::grpc::ServerBuilderPlugin>>* plugins) {
plugins->emplace_back(new grpc::load_reporter::LoadReportingServiceServerBuilderPlugin());
plugins->emplace_back(
new grpc::load_reporter::LoadReportingServiceServerBuilderPlugin());
}
} // namespace experimental

Loading…
Cancel
Save