mirror of https://github.com/grpc/grpc-node.git
Merge branch 'master' into flatmap
This commit is contained in:
commit
2d046cda97
|
@ -950,7 +950,7 @@ exports.makeClientConstructor = function(methods, serviceName,
|
|||
}
|
||||
ServiceClient.prototype.$method_names[attrs.path] = name;
|
||||
// Associate all provided attributes with the method
|
||||
_.assign(ServiceClient.prototype[name], attrs);
|
||||
Object.assign(ServiceClient.prototype[name], attrs);
|
||||
if (attrs.originalName) {
|
||||
ServiceClient.prototype[attrs.originalName] =
|
||||
ServiceClient.prototype[name];
|
||||
|
|
|
@ -751,7 +751,7 @@ function _startBatchIfReady(call, batch, batch_state, callback) {
|
|||
// Dependencies are met, start the batch and any deferred batches whose
|
||||
// dependencies are met as a result.
|
||||
call.startBatch(batch, callback);
|
||||
completed_ops = _.union(completed_ops, batch_ops);
|
||||
completed_ops = Array.from(new Set(completed_ops.concat(batch_ops)));
|
||||
deferred_batches = common.flatMap(deferred_batches, function(deferred_batch) {
|
||||
var deferred_batch_ops = Object.keys(deferred_batch).map(Number);
|
||||
if (_areBatchRequirementsMet(deferred_batch_ops, completed_ops)) {
|
||||
|
|
Loading…
Reference in New Issue