aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cpp/server
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2017-05-09 16:50:54 -0700
committerGravatar Muxi Yan <mxyan@google.com>2017-05-09 16:50:54 -0700
commitb1a80c751d99996bc3e48390081b3b0dfcfbc4e0 (patch)
treed918e48891e730c9fb26c12b160f485502f89ae3 /src/cpp/server
parente22bd48cd93cf4c0b777e124631f14bb21073c6c (diff)
bug fixes
Diffstat (limited to 'src/cpp/server')
-rw-r--r--src/cpp/server/server_builder.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cpp/server/server_builder.cc b/src/cpp/server/server_builder.cc
index 67a7846da5..92aa30c240 100644
--- a/src/cpp/server/server_builder.cc
+++ b/src/cpp/server/server_builder.cc
@@ -363,7 +363,7 @@ void ServerBuilder::InternalAddPluginFactory(
(*g_plugin_factory_list).push_back(CreatePlugin);
}
-void ServerBuilder::EnableWorkaround(uint32_t id) {
+ServerBuilder& ServerBuilder::EnableWorkaround(uint32_t id) {
switch (id) {
case GRPC_WORKAROUND_ID_CRONET_COMPRESSION:
enabled_workarounds_.push_back(GRPC_ARG_WORKAROUND_CRONET_COMPRESSION);
@@ -371,6 +371,8 @@ void ServerBuilder::EnableWorkaround(uint32_t id) {
default:
gpr_log(GPR_ERROR, "Workaround %u is not exist or obsolete.", id);
}
+
+ return *this;
}
} // namespace grpc