diff options
author | Anton Tananaev <atananaev@lyft.com> | 2020-12-29 11:22:01 -0800 |
---|---|---|
committer | Anton Tananaev <atananaev@lyft.com> | 2020-12-29 11:22:01 -0800 |
commit | c0dee04079cb2edb855e6eeeab9cb6f1b43fa465 (patch) | |
tree | 4692f986852f2b7a557c47a332f40e5ce82d2058 /src/main/java/org/traccar/Main.java | |
parent | 47468774b6b87c67d8ba98e52bfece04d6d48d1a (diff) | |
download | trackermap-server-c0dee04079cb2edb855e6eeeab9cb6f1b43fa465.tar.gz trackermap-server-c0dee04079cb2edb855e6eeeab9cb6f1b43fa465.tar.bz2 trackermap-server-c0dee04079cb2edb855e6eeeab9cb6f1b43fa465.zip |
Migrate keys and remove database cleanup
Diffstat (limited to 'src/main/java/org/traccar/Main.java')
-rw-r--r-- | src/main/java/org/traccar/Main.java | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/main/java/org/traccar/Main.java b/src/main/java/org/traccar/Main.java index 59afab3a5..993c68365 100644 --- a/src/main/java/org/traccar/Main.java +++ b/src/main/java/org/traccar/Main.java @@ -119,19 +119,6 @@ public final class Main { } } - private static void scheduleDatabaseCleanup() { - new Timer().scheduleAtFixedRate(new TimerTask() { - @Override - public void run() { - try { - Context.getDataManager().clearHistory(); - } catch (SQLException error) { - LOGGER.warn("Clear history error", error); - } - } - }, 0, CLEAN_PERIOD); - } - public static void run(String configFile) { try { Context.init(configFile); @@ -147,7 +134,6 @@ public final class Main { Context.getScheduleManager().start(); scheduleHealthCheck(); - scheduleDatabaseCleanup(); Thread.setDefaultUncaughtExceptionHandler((t, e) -> LOGGER.error("Thread exception", e)); |