Comment out bad server timeout code
This commit is contained in:
parent
1532bee954
commit
ff4ac3ab9d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user