revert js changes.

pull/3109/head
Yang Gao 10 years ago
parent 600d70cd8d
commit 3440548d83
  1. 2
      node/greeter_client.js
  2. 4
      node/greeter_server.js

@ -44,7 +44,7 @@ function main() {
} else {
user = 'world';
}
client.SayHello({name: user}, function(err, response) {
client.sayHello({name: user}, function(err, response) {
console.log('Greeting:', response.message);
});
}

@ -41,7 +41,7 @@ var Server = grpc.buildServer([hello_proto.Greeter.service]);
/**
* Implements the SayHello RPC method.
*/
function SayHello(call, callback) {
function sayHello(call, callback) {
callback(null, {message: 'Hello ' + call.request.name});
}
@ -52,7 +52,7 @@ function SayHello(call, callback) {
function main() {
var server = new Server({
"helloworld.Greeter": {
SayHello: SayHello
sayHello: sayHello
}
});

Loading…
Cancel
Save