Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Commit

Permalink
fix precondition
Browse files Browse the repository at this point in the history
  • Loading branch information
mutianf committed Feb 1, 2021
1 parent ec7094f commit 9c7ef74
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ public BatcherImpl(
>= batchingSettings.getElementCountThreshold(),
"if throttling and batching on element count are enabled, FlowController#minOutstandingElementCount must be greater or equal to elementCountThreshold");
Preconditions.checkArgument(
flowControllerToUse.getMinOutstandingElementCount() == null
flowControllerToUse.getMinOutstandingRequestBytes() == null
|| batchingSettings.getRequestByteThreshold() == null
|| flowControllerToUse.getMinOutstandingElementCount()
|| flowControllerToUse.getMinOutstandingRequestBytes()
>= batchingSettings.getRequestByteThreshold(),
"if throttling and batching on request bytes are enabled, FlowController#minOutstandingRequestBytes must be greater or equal to requestByteThreshold");
}
Expand Down

0 comments on commit 9c7ef74

Please sign in to comment.