aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cpp/client
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-07-07 16:08:00 -0700
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-07-07 16:08:00 -0700
commit822d2c7bebf9810903bdc63e24dc26eb2640f756 (patch)
treec84efa15bccbb5afddbf8e76fb1dcc19f2326eae /src/cpp/client
parent772187cdf0ff9dfafd2e693474c51eeddfe4c800 (diff)
Support registering services against specific hosts
Diffstat (limited to 'src/cpp/client')
-rw-r--r--src/cpp/client/channel.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpp/client/channel.cc b/src/cpp/client/channel.cc
index 72593f877e..406811d47f 100644
--- a/src/cpp/client/channel.cc
+++ b/src/cpp/client/channel.cc
@@ -59,7 +59,7 @@ Channel::~Channel() { grpc_channel_destroy(c_channel_); }
Call Channel::CreateCall(const RpcMethod& method, ClientContext* context,
CompletionQueue* cq) {
auto c_call =
- method.channel_tag()
+ method.channel_tag() && context->authority().empty()
? grpc_channel_create_registered_call(c_channel_, cq->cq(),
method.channel_tag(),
context->raw_deadline())