Fix deprecation warning Server#addProtoService and use Server#addService instead

pull/12799/head
Florian Nagel 7 years ago
parent f9a39ac7e2
commit a36b429ae8
  1. 2
      examples/node/dynamic_codegen/greeter_server.js

@ -34,7 +34,7 @@ function sayHello(call, callback) {
*/
function main() {
var server = new grpc.Server();
server.addProtoService(hello_proto.Greeter.service, {sayHello: sayHello});
server.addService(hello_proto.Greeter.service, {sayHello: sayHello});
server.bind('0.0.0.0:50051', grpc.ServerCredentials.createInsecure());
server.start();
}

Loading…
Cancel
Save