Skip to content

Commit

Permalink
[MODORDERS-865] Rewrite the orders rollover interaction in an asynchr…
Browse files Browse the repository at this point in the history
…onous way (#348)

(cherry picked from commit d0ce676)
  • Loading branch information
Abdulkhakimov authored and Dzmitry_Butramyou committed Mar 21, 2023
1 parent 57f0d0a commit 05e8091
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,7 @@ private Future<Void> startOrdersRollover(LedgerFiscalYearRollover rollover, Ledg
}
log.info("Orders rollover started for Ledger {}", rollover.getLedgerId());
return orderRolloverRestClient.postEmptyResponse(rollover, requestContext)
.recover(t -> handleOrderRolloverError(t, rollover, progress, client))
.compose(aVoid -> rolloverProgressService.calculateAndUpdateOverallProgressStatus(
progress.withOrdersRolloverStatus(SUCCESS), client));
.recover(t -> handleOrderRolloverError(t, rollover, progress, client));
}

private Future<Void> startFinancialRollover(LedgerFiscalYearRollover rollover, LedgerFiscalYearRolloverProgress progress,
Expand Down

0 comments on commit 05e8091

Please sign in to comment.