Comment out bad server timeout code

This commit is contained in:
Colin McDonald 2016-06-26 22:50:15 -04:00
parent 1532bee954
commit ff4ac3ab9d

View File

@ -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