Commit e63eaf11 authored by wangxuefeng's avatar wangxuefeng

Rollback echo_c++ example

parent 57834a6b
...@@ -77,17 +77,11 @@ int main(int argc, char* argv[]) { ...@@ -77,17 +77,11 @@ int main(int argc, char* argv[]) {
// the response comes back or error occurs(including timedout). // the response comes back or error occurs(including timedout).
stub.Echo(&cntl, &request, &response, NULL); stub.Echo(&cntl, &request, &response, NULL);
if (!cntl.Failed()) { if (!cntl.Failed()) {
if (cntl.response_attachment().empty()) { LOG(INFO) << "Received response from " << cntl.remote_side()
LOG(INFO) << "Received response from " << cntl.remote_side() << " to " << cntl.local_side()
<< ": " << response.message() << ": " << response.message() << " (attached="
<< " latency=" << cntl.latency_us() << "us"; << cntl.response_attachment() << ")"
} else { << " latency=" << cntl.latency_us() << "us";
LOG(INFO) << "Received response from " << cntl.remote_side()
<< " to " << cntl.local_side()
<< ": " << response.message() << " (attached="
<< cntl.response_attachment() << ")"
<< " latency=" << cntl.latency_us() << "us";
}
} else { } else {
LOG(WARNING) << cntl.ErrorText(); LOG(WARNING) << cntl.ErrorText();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment