mirror of https://github.com/grpc/grpc-node.git
refactor: drop usage of _.partial
This commit is contained in:
parent
17e72173dc
commit
1b57e54e68
|
|
@ -939,9 +939,11 @@ exports.makeClientConstructor = function(methods, serviceName,
|
|||
throw new Error('Method names cannot start with $');
|
||||
}
|
||||
var method_type = common.getMethodType(attrs);
|
||||
var method_func = _.partial(requester_funcs[method_type], attrs.path,
|
||||
attrs.requestSerialize,
|
||||
attrs.responseDeserialize);
|
||||
var method_func = function() {
|
||||
return requester_funcs[method_type].apply(this, arguments.concat([
|
||||
attrs.path, attrs.requestSerialize, attrs.responseDeserialize
|
||||
]));
|
||||
};
|
||||
if (class_options.deprecatedArgumentOrder) {
|
||||
ServiceClient.prototype[name] =
|
||||
deprecated_request_wrap[method_type](method_func);
|
||||
|
|
|
|||
Loading…
Reference in New Issue