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

Use 'RegisterService' for registering async services.
pull/5798/head
Yuchen Zeng 9 years ago
parent 921f4b0a6e
commit c67a8ec111
  1. 2
      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();
```

Loading…
Cancel
Save