commit | fd7627691f13b1c62e97014253b3ac011e5e4b94 | [log] [tgz] |
---|---|---|
author | Yang Gao <yangg@google.com> | Wed Jun 17 16:31:39 2015 -0700 |
committer | Yang Gao <yangg@google.com> | Wed Jun 17 16:31:39 2015 -0700 |
tree | 1ac69a1bc4809c4ba1fe05eadc702612f2205dd5 | |
parent | 29a6919f85b768b14172944b95e7af1d1f3cc7cf [diff] [blame] |
Move to new Status API
diff --git a/cpp/helloworld/greeter_client.cc b/cpp/helloworld/greeter_client.cc index c0aec16..44e4447 100644 --- a/cpp/helloworld/greeter_client.cc +++ b/cpp/helloworld/greeter_client.cc
@@ -64,7 +64,7 @@ ClientContext context; Status status = stub_->SayHello(&context, request, &reply); - if (status.IsOk()) { + if (status.ok()) { return reply.message(); } else { return "Rpc failed";