Skip to content

Commit

Permalink
Merge pull request #631 from JustinBeckwith/union
Browse files Browse the repository at this point in the history
refactor: drop usage of _.union
  • Loading branch information
murgatroid99 committed Nov 15, 2018
2 parents c9d4fbe + 91ca09d commit 43a95f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/grpc-native-core/src/client_interceptors.js
Expand Up @@ -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 = _.flatMap(deferred_batches, function(deferred_batch) {
var deferred_batch_ops = Object.keys(deferred_batch).map(Number);
if (_areBatchRequirementsMet(deferred_batch_ops, completed_ops)) {
Expand Down

0 comments on commit 43a95f9

Please sign in to comment.