Skip to content
Snippets Groups Projects
Commit c67a8ec1 authored by Yuchen Zeng's avatar Yuchen Zeng
Browse files

Doc Fixit: examples/cpp/helloworld/README.md

Use 'RegisterService' for registering async services.
parent 921f4b0a
No related branches found
No related tags found
No related merge requests found
...@@ -207,7 +207,7 @@ completion queue to return the tag. The basic flow is ...@@ -207,7 +207,7 @@ completion queue to return the tag. The basic flow is
helloworld::Greeter::AsyncService service; helloworld::Greeter::AsyncService service;
ServerBuilder builder; ServerBuilder builder;
builder.AddListeningPort("0.0.0.0:50051", InsecureServerCredentials()); builder.AddListeningPort("0.0.0.0:50051", InsecureServerCredentials());
builder.RegisterAsyncService(&service); builder.RegisterService(&service);
auto cq = builder.AddCompletionQueue(); auto cq = builder.AddCompletionQueue();
auto server = builder.BuildAndStart(); auto server = builder.BuildAndStart();
``` ```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment