aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cpp/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpp/client')
-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 115e454943..febad62218 100644
--- a/src/cpp/client/channel.cc
+++ b/src/cpp/client/channel.cc
@@ -78,10 +78,8 @@ Status Channel::StartBlockingRpc(const RpcMethod& method,
const google::protobuf::Message& request,
google::protobuf::Message* result) {
Status status;
- 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_event* ev;
void* finished_tag = reinterpret_cast<char*>(call);