From fe40815682f7da0a7d6f09be2253d6660ef8e7a5 Mon Sep 17 00:00:00 2001 From: Juanli Shen Date: Wed, 27 Sep 2017 12:27:20 -0700 Subject: Readd grpclb fallback --- src/cpp/common/channel_arguments.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/cpp') 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; -- cgit v1.2.3