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
pull/1/merge
yangg 10 years ago committed by Tim Emiola
parent 9f312b49e8
commit 03df7f653a
  1. 6
      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);

Loading…
Cancel
Save