Remvoe error in moving code over

This commit is contained in:
Tadgh 2021-09-28 16:43:29 -04:00
parent cd1a4154c1
commit 040d09cfa6
1 changed files with 2 additions and 3 deletions

View File

@ -397,8 +397,7 @@ public abstract class BaseTransactionProcessor {
List<RetriableBundleTask> getCalls = new ArrayList<>();
List<RetriableBundleTask> nonGetCalls = new ArrayList<>();
long getEntriesSize = requestEntries.stream().filter(entry -> myVersionAdapter.getEntryRequestVerb(myContext, entry).equalsIgnoreCase("GET")).count();
CountDownLatch completionLatch = new CountDownLatch((int) getEntriesSize);
CountDownLatch completionLatch = new CountDownLatch(requestEntriesSize);
for (int i=0; i< requestEntriesSize ; i++ ) {
IBase nextRequestEntry = requestEntries.get(i);
RetriableBundleTask retriableBundleTask = new RetriableBundleTask(completionLatch, theRequestDetails, responseMap, i, nextRequestEntry, theNestedMode);