diff options
author | Yuchen Zeng <zyc@google.com> | 2016-03-17 11:36:59 -0700 |
---|---|---|
committer | Yuchen Zeng <zyc@google.com> | 2016-03-17 11:36:59 -0700 |
commit | c67a8ec111c6fafeab879b63a594aabde08fb4d2 (patch) | |
tree | ffe5772bd30ae689312dc9a85f97ff2f4b7fdc6c /examples/cpp/helloworld | |
parent | 921f4b0a6e0c77f8c1d0f48b72d7087a21f5e311 (diff) |
Doc Fixit: examples/cpp/helloworld/README.md
Use 'RegisterService' for registering async services.
Diffstat (limited to 'examples/cpp/helloworld')
-rw-r--r-- | examples/cpp/helloworld/README.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/cpp/helloworld/README.md b/examples/cpp/helloworld/README.md index 8e11f7cdf3..04283eabc3 100644 --- a/examples/cpp/helloworld/README.md +++ b/examples/cpp/helloworld/README.md @@ -207,7 +207,7 @@ completion queue to return the tag. The basic flow is helloworld::Greeter::AsyncService service; ServerBuilder builder; builder.AddListeningPort("0.0.0.0:50051", InsecureServerCredentials()); - builder.RegisterAsyncService(&service); + builder.RegisterService(&service); auto cq = builder.AddCompletionQueue(); auto server = builder.BuildAndStart(); ``` |