revert js changes.

This commit is contained in:
Yang Gao 2015-02-20 11:35:20 -08:00
parent 600d70cd8d
commit 3440548d83
2 changed files with 3 additions and 3 deletions

View File

@ -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);
});
}

View File

@ -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
}
});