[example] Update RouteGuide example

pull/36958/head
Yash Tibrewal 5 months ago
parent 1071ada87c
commit cd5b066350
  1. 6
      examples/cpp/route_guide/route_guide_callback_client.cc

@ -243,7 +243,11 @@ class RouteGuideClient {
StartRead(&server_note_);
StartCall();
}
void OnWriteDone(bool /*ok*/) override { NextWrite(); }
void OnWriteDone(bool ok) override {
if (ok) {
NextWrite();
}
}
void OnReadDone(bool ok) override {
if (ok) {
std::cout << "Got message " << server_note_.message() << " at "

Loading…
Cancel
Save