aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/Main.java
diff options
context:
space:
mode:
authorAnton Tananaev <atananaev@lyft.com>2020-12-29 11:22:01 -0800
committerAnton Tananaev <atananaev@lyft.com>2020-12-29 11:22:01 -0800
commitc0dee04079cb2edb855e6eeeab9cb6f1b43fa465 (patch)
tree4692f986852f2b7a557c47a332f40e5ce82d2058 /src/main/java/org/traccar/Main.java
parent47468774b6b87c67d8ba98e52bfece04d6d48d1a (diff)
downloadtrackermap-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.java14
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));