Skip to content

Commit

Permalink
chore: fix matchmaker auto matching
Browse files Browse the repository at this point in the history
  • Loading branch information
yHSJ committed Dec 10, 2024
1 parent bf9d9c0 commit eca5e5e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/src/main/java/fi/sundae/bot/Bot.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public Bot(String token, String ownerId, String channelId, String adminRoleId) {
}

private void scheduleMatchmaking(JDA jda) {
try (ScheduledExecutorService executor = Executors.newSingleThreadScheduledExecutor()) {
ScheduledExecutorService executor = Executors.newSingleThreadScheduledExecutor();
executor.scheduleAtFixedRate(
() -> {
List<Match> matches = MATCHMAKER.buildAllMatches();
Expand All @@ -48,6 +48,5 @@ private void scheduleMatchmaking(JDA jda) {
0,
5,
TimeUnit.MINUTES);
}
}
}

0 comments on commit eca5e5e

Please sign in to comment.