Skip to content

Commit

Permalink
update examples to use addService
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchdraft authored and stanley-cheung committed Nov 10, 2018
1 parent def314a commit 63dac01
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion net/grpc/gateway/examples/echo/node-server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function doServerStreamingEcho(call) {
*/
function getServer() {
var server = new grpc.Server();
server.addProtoService(echo.EchoService.service, {
server.addService(echo.EchoService.service, {
echo: doEcho,
echoAbort: doEchoAbort,
serverStreamingEcho: doServerStreamingEcho,
Expand Down
2 changes: 1 addition & 1 deletion net/grpc/gateway/examples/helloworld/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function doSayHello(call, callback) {

function getServer() {
var server = new grpc.Server();
server.addProtoService(helloworld.Greeter.service, {
server.addService(helloworld.Greeter.service, {
sayHello: doSayHello,
});
return server;
Expand Down
2 changes: 1 addition & 1 deletion net/grpc/gateway/examples/helloworld/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function doSayHelloAfterDelay(call, callback) {
*/
function getServer() {
var server = new grpc.Server();
server.addProtoService(helloworld.Greeter.service, {
server.addService(helloworld.Greeter.service, {
sayHello: doSayHello,
sayRepeatHello: doSayRepeatHello,
sayHelloAfterDelay: doSayHelloAfterDelay
Expand Down

0 comments on commit 63dac01

Please sign in to comment.