Skip to content

Commit

Permalink
feat: retry failed calls 5 times instead of once by default (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
bigboxer23 committed May 6, 2024
1 parent 0a423e4 commit 2a18006
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>com.bigboxer23</groupId>
<artifactId>utils</artifactId>
<version>2.0.29</version>
<version>2.0.30</version>

<name>utils</name>
<!-- FIXME change it to the project's website -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public static <T> T execute(
* @throws IOException
*/
public static <T> T execute(Command<T> command, String identifier, long waitInSeconds) throws IOException {
return execute(command, identifier, waitInSeconds, 1);
return execute(command, identifier, waitInSeconds, 5);
}

/**
Expand All @@ -69,6 +69,6 @@ public static <T> T execute(Command<T> command, String identifier, long waitInSe
* @throws IOException
*/
public static <T> T execute(Command<T> command, String identifier) throws IOException {
return execute(command, identifier, 5);
return execute(command, identifier, 10);
}
}

0 comments on commit 2a18006

Please sign in to comment.