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