aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cpp
diff options
context:
space:
mode:
authorGravatar Juanli Shen <juanlishen@google.com>2017-09-27 12:27:20 -0700
committerGravatar Juanli Shen <juanlishen@google.com>2017-09-27 12:27:20 -0700
commitfe40815682f7da0a7d6f09be2253d6660ef8e7a5 (patch)
tree8ffb0003467f24e1817747457bf2b5dbbf273235 /src/cpp
parent708163a0b440e1489549ce6093bdf6598a6fc78c (diff)
Readd grpclb fallback
Diffstat (limited to 'src/cpp')
-rw-r--r--src/cpp/common/channel_arguments.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cpp/common/channel_arguments.cc b/src/cpp/common/channel_arguments.cc
index f130aecd4b..f89f5f1f03 100644
--- a/src/cpp/common/channel_arguments.cc
+++ b/src/cpp/common/channel_arguments.cc
@@ -86,6 +86,10 @@ void ChannelArguments::SetCompressionAlgorithm(
SetInt(GRPC_COMPRESSION_CHANNEL_DEFAULT_ALGORITHM, algorithm);
}
+void ChannelArguments::SetGrpclbFallbackTimeout(int fallback_timeout) {
+ SetInt(GRPC_ARG_GRPCLB_FALLBACK_TIMEOUT_MS, fallback_timeout);
+}
+
void ChannelArguments::SetSocketMutator(grpc_socket_mutator* mutator) {
if (!mutator) {
return;