From 03df7f653a15468ff11ed77206e443e81cc1d4d4 Mon Sep 17 00:00:00 2001 From: yangg <yangg@google.com> Date: Wed, 7 Jan 2015 11:41:10 -0800 Subject: [PATCH] Fix hostname for streaming. Change on 2015/01/07 by yangg <yangg@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=83448769 --- src/cpp/client/channel.cc | 6 ++---- 1 file 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); -- GitLab