Skip to content

Commit

Permalink
Move the comment where it belongs
Browse files Browse the repository at this point in the history
  • Loading branch information
adamziel committed Oct 19, 2020
1 parent 91e76bd commit 3c3b2e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/batch-processing/src/store/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ export const processBatch = function* ( queue, context, meta = {} ) {
const result = yield* commitTransaction( batchId, transactionId );
if ( result.state === STATE_ERROR ) {
failed = true;
// Don't break the loop as we still need results for any remaining transactions.
// Queue processor receives the batch object and may choose whether to
// process other transactions or short-circuit with an error.
}
}

Expand Down Expand Up @@ -80,9 +83,6 @@ export function* commitTransaction( batchId, transactionId ) {
}
exception = _exception;
errors = exception.errorsById;
// Don't break the loop as we still need results for any remaining transactions.
// Queue processor receives the batch object and may choose whether to
// process other transactions or short-circuit with an error.
}

const finishedAction = {
Expand Down

0 comments on commit 3c3b2e7

Please sign in to comment.