diff options
author | Mark D. Roth <roth@google.com> | 2016-10-26 09:02:37 -0700 |
---|---|---|
committer | Mark D. Roth <roth@google.com> | 2016-10-26 12:54:59 -0700 |
commit | 7190b0c6510b75766362c43ec32c9e497057bced (patch) | |
tree | 35fa3f978aeb68076a124df66a4be8cd44dcac00 /src/cpp | |
parent | d4a5971ae89e124f67781a6fda57b36af3d7fb54 (diff) |
Add ChannelArguments::SetLoadBalancingPolicyName() to C++ API.
Diffstat (limited to 'src/cpp')
-rw-r--r-- | src/cpp/common/channel_arguments.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cpp/common/channel_arguments.cc b/src/cpp/common/channel_arguments.cc index f297ae8587..d16d27e86c 100644 --- a/src/cpp/common/channel_arguments.cc +++ b/src/cpp/common/channel_arguments.cc @@ -113,6 +113,11 @@ void ChannelArguments::SetUserAgentPrefix( } } +void ChannelArguments::SetLoadBalancingPolicyName( + const grpc::string& lb_policy_name) { + SetString(GRPC_ARG_LB_POLICY_NAME, lb_policy_name); +} + void ChannelArguments::SetInt(const grpc::string& key, int value) { grpc_arg arg; arg.type = GRPC_ARG_INTEGER; |