diff --git a/src/cpp/client/channel.cc b/src/cpp/client/channel.cc index 95b7aabc1d6..b2fc0c97ee9 100644 --- a/src/cpp/client/channel.cc +++ b/src/cpp/client/channel.cc @@ -83,7 +83,7 @@ Call Channel::CreateCall(const RpcMethod &method, ClientContext *context, auto c_call = grpc_channel_create_call( c_channel_, cq->cq(), method.name(), - context->authority().empty() ? target_.c_str() + context->authority().empty() ? target_.c_str() : context->authority().c_str(), context->RawDeadline()); context->set_call(c_call);