aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cpp/client/channel.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/cpp/client/channel.cc b/src/cpp/client/channel.cc
index 7a21ec1804..7d95518631 100644
--- a/src/cpp/client/channel.cc
+++ b/src/cpp/client/channel.cc
@@ -170,10 +170,8 @@ StreamContextInterface* Channel::CreateStream(const RpcMethod& method,
ClientContext* context,
const google::protobuf::Message* request,
google::protobuf::Message* result) {
- grpc_call* call =
- grpc_channel_create_call(c_channel_, method.name(),
- // FIXME(yangg)
- "localhost", context->RawDeadline());
+ grpc_call* call = grpc_channel_create_call(
+ c_channel_, method.name(), target_.c_str(), context->RawDeadline());
context->set_call(call);
grpc_completion_queue* cq = grpc_completion_queue_create();
context->set_cq(cq);