aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/cpp/client/channel.cc6
-rw-r--r--test/cpp/end2end/async_test_server.cc1
2 files changed, 2 insertions, 5 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);
diff --git a/test/cpp/end2end/async_test_server.cc b/test/cpp/end2end/async_test_server.cc
index 0a40dbbbd9..f18b6c00bc 100644
--- a/test/cpp/end2end/async_test_server.cc
+++ b/test/cpp/end2end/async_test_server.cc
@@ -90,7 +90,6 @@ void AsyncTestServer::MainLoop() {
gpr_log(GPR_INFO, "SERVER_RPC_NEW %p", server_context);
if (server_context) {
EXPECT_EQ(server_context->method(), "/foo");
- EXPECT_EQ(server_context->host(), "localhost");
// TODO(ctiller): verify deadline
server_context->Accept(cq_.cq());
// Handle only one rpc at a time.