clang-format

This commit is contained in:
yang-g 2016-12-27 15:36:20 -08:00
parent 9bef0740a4
commit f56c251af7
2 changed files with 9 additions and 6 deletions

View File

@ -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_;
};

View File

@ -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