aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/util
diff options
context:
space:
mode:
authorGravatar Vijay Pai <vpai@google.com>2018-02-05 16:49:22 -0800
committerGravatar Vijay Pai <vpai@google.com>2018-02-05 16:49:22 -0800
commit3b7ae55f77c61b3e787543c72b9ccb978900d529 (patch)
tree7375c5f1f8209a35a232c8301e11d47def25e0a3 /test/cpp/util
parentdcd5ef3ad8b964ec487c96aeea4f1323193815ed (diff)
More uses of 1-phase Call
Diffstat (limited to 'test/cpp/util')
-rw-r--r--test/cpp/util/cli_call.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/cpp/util/cli_call.cc b/test/cpp/util/cli_call.cc
index 4f1a20c727..3b0bb9eeba 100644
--- a/test/cpp/util/cli_call.cc
+++ b/test/cpp/util/cli_call.cc
@@ -60,7 +60,8 @@ CliCall::CliCall(std::shared_ptr<grpc::Channel> channel,
ctx_.AddMetadata(iter->first, iter->second);
}
}
- call_ = stub_->Call(&ctx_, method, &cq_, tag(1));
+ call_ = stub_->PrepareCall(&ctx_, method, &cq_);
+ call_->StartCall(tag(1));
void* got_tag;
bool ok;
cq_.Next(&got_tag, &ok);