commit 372ddc7b7e74ccb3c3cf8f870419ec239585c9fd Author: iwakeh iwakeh@torproject.org Date: Wed Jan 17 19:29:12 2018 +0000
Use constants consistently.
Avoid multiple definitions of date-time related constants. --- src/main/java/org/torproject/onionoo/server/NodeIndexer.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/main/java/org/torproject/onionoo/server/NodeIndexer.java b/src/main/java/org/torproject/onionoo/server/NodeIndexer.java index 1a85a35..69baa53 100644 --- a/src/main/java/org/torproject/onionoo/server/NodeIndexer.java +++ b/src/main/java/org/torproject/onionoo/server/NodeIndexer.java @@ -3,6 +3,9 @@
package org.torproject.onionoo.server;
+import static org.torproject.onionoo.docs.DateTimeHelper.ONE_DAY; +import static org.torproject.onionoo.docs.DateTimeHelper.ONE_MINUTE; + import org.torproject.onionoo.docs.DocumentStore; import org.torproject.onionoo.docs.DocumentStoreFactory; import org.torproject.onionoo.docs.SummaryDocument; @@ -97,10 +100,6 @@ public class NodeIndexer implements ServletContextListener, Runnable { } }
- private static final long ONE_MINUTE = 60L * 1000L; - - private static final long ONE_DAY = 24L * 60L * ONE_MINUTE; - @Override public void run() { try {
tor-commits@lists.torproject.org