Stopped binding service handler functions to server

This commit is contained in:
murgatroid99 2015-07-01 12:56:10 -07:00
parent ec5bf47c95
commit 0f1df2c8b7
2 changed files with 2 additions and 2 deletions

View File

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

View File

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