Skip to content

Commit

Permalink
Revert change to retry attempt count
Browse files Browse the repository at this point in the history
  • Loading branch information
maddie480 authored Sep 18, 2024
1 parent bd30be1 commit ad27e23
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public static InputStream openStreamWithTimeout(String url) throws IOException {
* @throws IOException If the task failed 3 times
*/
public static <T> T runWithRetry(IOSupplier<T> task) throws IOException {
for (int i = 1; i < 10; i++) {
for (int i = 1; i < 3; i++) {
try {
return task.get();
} catch (IOException e) {
Expand Down

0 comments on commit ad27e23

Please sign in to comment.