somasorosdpc commented on code in PR #4032:
URL: https://github.com/apache/fineract/pull/4032#discussion_r1731613823
##########
fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/jobs/recalculateinterestforloan/RecalculateInterestForLoanTasklet.java:
##########
@@ -106,67 +109,26 @@ private void recalculateInterest(OfficeData office, int
threadPoolSize, int batc
do {
int totalFilteredRecords = loanIds.size();
log.debug("Starting accrual - total filtered records - {}",
totalFilteredRecords);
- recalculateInterest(loanIds, threadPoolSize, batchSize);
+ recalculateInterest(loanIds, threadPoolSize);
maxLoanIdInList += pageSize + 1;
loanIds = Collections.synchronizedList(
this.loanReadPlatformService.fetchLoansForInterestRecalculation(pageSize,
maxLoanIdInList, officeHierarchy));
} while (!CollectionUtils.isEmpty(loanIds));
}
- private void recalculateInterest(List<Long> loanIds, int threadPoolSize,
int batchSize) {
+ private void recalculateInterest(List<Long> loanIds, int threadPoolSize) {
Review Comment:
refactored because it was not working.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]