diff options
author | yang-g <yangg@google.com> | 2016-01-14 16:13:14 -0800 |
---|---|---|
committer | yang-g <yangg@google.com> | 2016-01-14 16:13:14 -0800 |
commit | 54099aa46f63238275dd626390176d72eecc947a (patch) | |
tree | 6f70b5c9b8d2189a585b0b5896c88601bc71d2bf | |
parent | 77c63333a63260d1e82b03733db4a7706baed74c (diff) |
Update example
-rw-r--r-- | examples/cpp/helloworld/greeter_async_server.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/cpp/helloworld/greeter_async_server.cc b/examples/cpp/helloworld/greeter_async_server.cc index d06e7c7148..64e065b1e4 100644 --- a/examples/cpp/helloworld/greeter_async_server.cc +++ b/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(); |