mirror of
https://github.com/grpc/grpc-node.git
synced 2025-12-08 18:23:54 +00:00
Stopped binding service handler functions to server
This commit is contained in:
parent
ec5bf47c95
commit
0f1df2c8b7
@ -51,7 +51,6 @@ HealthImplementation.prototype.setStatus = function(service, status) {
|
||||
|
||||
HealthImplementation.prototype.check = function(call, callback){
|
||||
var service = call.request.service;
|
||||
debugger;
|
||||
callback(null, {status: _.get(this.statusMap, service, 'UNSPECIFIED')});
|
||||
};
|
||||
|
||||
|
||||
@ -634,7 +634,8 @@ function makeServerConstructor(service_attr_map) {
|
||||
}
|
||||
var serialize = attrs.responseSerialize;
|
||||
var deserialize = attrs.requestDeserialize;
|
||||
server.register(attrs.path, service_handlers[service_name][name],
|
||||
server.register(attrs.path, _.bind(service_handlers[service_name][name],
|
||||
service_handlers[service_name]),
|
||||
serialize, deserialize, method_type);
|
||||
});
|
||||
}, this);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user