Rename method

This commit is contained in:
2022-12-20 22:49:20 +01:00
parent d09c59996b
commit 161c91b45d
3 changed files with 5 additions and 5 deletions

View File

@@ -52,7 +52,7 @@ public class Cache
private static LocalDateTime startupTime = null;
// the scheduler that should always be used when running a scheduled task.
private final static ScheduledExecutorService scheduler = Executors.newSingleThreadScheduledExecutor(); // todo: try-with-resources
private final static ScheduledExecutorService taskScheduler = Executors.newSingleThreadScheduledExecutor(); // todo: try-with-resources
private final static String execPath = System.getProperty("user.dir");
private static final String botName = "Hideko";
@@ -322,8 +322,8 @@ public class Cache
loveCalculatorValues.remove(userId2 + "|" + userId1);
}
public static ScheduledExecutorService getScheduler() {
return scheduler;
public static ScheduledExecutorService getTaskScheduler() {
return taskScheduler;
}
}