Update example

pull/4714/head
yang-g 9 years ago
parent 77c63333a6
commit 54099aa46f
  1. 2
      examples/cpp/helloworld/greeter_async_server.cc

@ -67,7 +67,7 @@ class ServerImpl final {
builder.AddListeningPort(server_address, grpc::InsecureServerCredentials());
// Register "service_" as the instance through which we'll communicate with
// clients. In this case it corresponds to an *asynchronous* service.
builder.RegisterAsyncService(&service_);
builder.RegisterService(&service_);
// Get hold of the completion queue used for the asynchronous communication
// with the gRPC runtime.
cq_ = builder.AddCompletionQueue();

Loading…
Cancel
Save