From f7aba7a49b8184264d13c13752e7795598aa46e6 Mon Sep 17 00:00:00 2001 From: Liam Date: Sat, 6 Jul 2024 06:24:53 +0100 Subject: [PATCH] lower retry limit --- src/main/java/cc/fascinated/bat/common/ChannelUtils.java | 2 +- src/main/java/cc/fascinated/bat/common/UserUtils.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/cc/fascinated/bat/common/ChannelUtils.java b/src/main/java/cc/fascinated/bat/common/ChannelUtils.java index 9cdda56..3807056 100644 --- a/src/main/java/cc/fascinated/bat/common/ChannelUtils.java +++ b/src/main/java/cc/fascinated/bat/common/ChannelUtils.java @@ -19,7 +19,7 @@ public class ChannelUtils { * @return the user with the given id */ private static TextChannel getTextChannel(String id, int retries) { - if (retries >= 25) { + if (retries >= 10) { log.error("Failed to find user \"{}\" after {} retries.", id, retries); return null; } diff --git a/src/main/java/cc/fascinated/bat/common/UserUtils.java b/src/main/java/cc/fascinated/bat/common/UserUtils.java index 15febb3..fa0bd45 100644 --- a/src/main/java/cc/fascinated/bat/common/UserUtils.java +++ b/src/main/java/cc/fascinated/bat/common/UserUtils.java @@ -19,7 +19,7 @@ public class UserUtils { * @return the user with the given id */ private static User getUser(String id, int retries) { - if (retries >= 25) { + if (retries >= 10) { log.error("Failed to find user \"{}\" after {} retries.", id, retries); return null; }