aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/node
diff options
context:
space:
mode:
authorGravatar Florian Nagel <hi@floriannagel.xyz>2017-10-03 15:21:14 +0200
committerGravatar Florian Nagel <hi@floriannagel.xyz>2017-10-03 15:21:14 +0200
commita36b429ae89c509400b893c617347ceb94471d4d (patch)
tree65dc29319be9979018a18e20a5923ed63b5e9439 /examples/node
parentf9a39ac7e227cc44091984631ec2e923c152f969 (diff)
Fix deprecation warning Server#addProtoService and use Server#addService instead
Diffstat (limited to 'examples/node')
-rw-r--r--examples/node/dynamic_codegen/greeter_server.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/node/dynamic_codegen/greeter_server.js b/examples/node/dynamic_codegen/greeter_server.js
index f9cb1b13d6..180f96c28b 100644
--- a/examples/node/dynamic_codegen/greeter_server.js
+++ b/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();
}