fix: increase the query timeout even more to 5 minutes

This commit is contained in:
ChomeNS
2025-03-19 14:12:35 +07:00
parent 04b0377bd9
commit 85b394c86d

View File

@@ -89,11 +89,11 @@ public class QueryPlugin extends Bot.Listener {
// this probably doesn't do much, since even if the command returns
// no output, the tracker will still tellraw to the bot that this command has
// completed no matter what, but just in case, we'll remove the
// transactions and the ids here after 30 seconds
// transactions and the ids here after 5 minutes
bot.executor.schedule(() -> {
transactions.remove(transactionId);
ids.remove(id);
}, 30, TimeUnit.SECONDS);
}, 5, TimeUnit.MINUTES);
return Triple.of(future, transactionId, id);
}