mirror of
https://github.com/grpc/grpc-node.git
synced 2025-12-08 18:23:54 +00:00
Merge pull request #629 from JustinBeckwith/bind
refactor: drop usage of _.bind
This commit is contained in:
commit
c637b26bee
@ -903,10 +903,10 @@ Server.prototype.addService = function(service, implementation) {
|
||||
' for ' + attrs.path + ' expected but not provided');
|
||||
impl = defaultHandler[method_type];
|
||||
} else {
|
||||
impl = _.bind(implementation[attrs.originalName], implementation);
|
||||
impl = implementation[attrs.originalName].bind(implementation);
|
||||
}
|
||||
} else {
|
||||
impl = _.bind(implementation[name], implementation);
|
||||
impl = implementation[name].bind(implementation);
|
||||
}
|
||||
var serialize = attrs.responseSerialize;
|
||||
var deserialize = attrs.requestDeserialize;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user