From ff4ac3ab9d7e5ee2a3f5a30ff4c8f827dee78a4c Mon Sep 17 00:00:00 2001 From: Colin McDonald Date: Sun, 26 Jun 2016 22:50:15 -0400 Subject: [PATCH] Comment out bad server timeout code --- src/main/java/net/frozenorb/apiv3/model/Server.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/frozenorb/apiv3/model/Server.java b/src/main/java/net/frozenorb/apiv3/model/Server.java index af71a15..f4d47e1 100644 --- a/src/main/java/net/frozenorb/apiv3/model/Server.java +++ b/src/main/java/net/frozenorb/apiv3/model/Server.java @@ -70,7 +70,7 @@ public final class Server { // TODO: This code isn't multi-instance safe AND will send more // db requests than needed. private static void updateTimedOutServers() { - for (Server server : serverCache) { + /*for (Server server : serverCache) { int lastUpdatedAgo = TimeUtils.getSecondsBetween(server.getLastUpdatedAt(), Instant.now()); if (lastUpdatedAgo < TimeUnit.SECONDS.toSeconds(30)) { @@ -100,7 +100,7 @@ public final class Server { error.printStackTrace(); } }); - } + }*/ } private Server() {} // For Jackson