Skip to content

Commit

Permalink
Fix Java http client off by one error on retry count (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbkyang-nvi authored Jul 24, 2023
1 parent 39d9687 commit 3af995f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ private static CloseableHttpAsyncClient createHttpClient(
public void setRetryCnt(int retryCnt)
{
Preconditions.checkArgument(
retryCnt > 0, "Invalid retryCount: %s", retryCnt);
retryCnt >= 0, "Invalid retryCount: %s", retryCnt);
this.retryCnt = retryCnt;
}

Expand Down

0 comments on commit 3af995f

Please sign in to comment.