From 2a180061b73f3867877fafa6e2c1dbf61369e459 Mon Sep 17 00:00:00 2001 From: Matt Jones Date: Mon, 6 May 2024 08:12:15 -0500 Subject: [PATCH] feat: retry failed calls 5 times instead of once by default (#96) --- pom.xml | 2 +- .../java/com/bigboxer23/utils/command/RetryingCommand.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index cbee7f9..70b0397 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.bigboxer23 utils - 2.0.29 + 2.0.30 utils diff --git a/src/main/java/com/bigboxer23/utils/command/RetryingCommand.java b/src/main/java/com/bigboxer23/utils/command/RetryingCommand.java index 27a77a2..bafd9a9 100644 --- a/src/main/java/com/bigboxer23/utils/command/RetryingCommand.java +++ b/src/main/java/com/bigboxer23/utils/command/RetryingCommand.java @@ -56,7 +56,7 @@ public static T execute( * @throws IOException */ public static T execute(Command command, String identifier, long waitInSeconds) throws IOException { - return execute(command, identifier, waitInSeconds, 1); + return execute(command, identifier, waitInSeconds, 5); } /** @@ -69,6 +69,6 @@ public static T execute(Command command, String identifier, long waitInSe * @throws IOException */ public static T execute(Command command, String identifier) throws IOException { - return execute(command, identifier, 5); + return execute(command, identifier, 10); } }