Explorar o código

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

Use 'RegisterService' for registering async services.
Yuchen Zeng %!s(int64=9) %!d(string=hai) anos
pai
achega
c67a8ec111
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/cpp/helloworld/README.md

+ 1 - 1
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();
     ```