revert js changes.
This commit is contained in:
parent
600d70cd8d
commit
3440548d83
|
|
@ -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…
Reference in New Issue