clang-format

pull/9205/head
yang-g 8 years ago
parent 9bef0740a4
commit f56c251af7
  1. 4
      include/grpc++/ext/health_check_service_server_builder_option.h
  2. 11
      src/cpp/ext/health_check_service_server_builder_option.cc

@ -49,7 +49,9 @@ class HealthCheckServiceServerBuilderOption : public ServerBuilderOption {
std::unique_ptr<HealthCheckServiceInterface> hc);
~HealthCheckServiceServerBuilderOption() override {}
void UpdateArguments(ChannelArguments* args) override;
void UpdatePlugins(std::vector<std::unique_ptr<ServerBuilderPlugin>>* plugins) override;
void UpdatePlugins(
std::vector<std::unique_ptr<ServerBuilderPlugin>>* plugins) override;
private:
std::unique_ptr<HealthCheckServiceInterface> hc_;
};

@ -36,14 +36,15 @@
namespace grpc {
HealthCheckServiceServerBuilderOption::HealthCheckServiceServerBuilderOption(
std::unique_ptr<HealthCheckServiceInterface> hc) : hc_(std::move(hc)) { }
std::unique_ptr<HealthCheckServiceInterface> hc)
: hc_(std::move(hc)) {}
HealthCheckServiceServerBuilderOption::UpdateArguments(ChannelArguments* args) override {
HealthCheckServiceServerBuilderOption::UpdateArguments(
ChannelArguments* args) override {
args->SetPointer(DefaultHealthCheckServiceInterfaceArg(), hc_.release());
}
void HealthCheckServiceServerBuilderOption::UpdatePlugins(std::vector<std::unique_ptr<ServerBuilderPlugin>>* plugins) override {
}
void HealthCheckServiceServerBuilderOption::UpdatePlugins(
std::vector<std::unique_ptr<ServerBuilderPlugin>>* plugins) override {}
} // namespace grpc

Loading…
Cancel
Save