Update Server+ServerGroup cache more frequently
This commit is contained in:
parent
3dad944ca3
commit
d9d87872cb
@ -43,7 +43,7 @@ public final class Server {
|
||||
}
|
||||
|
||||
static {
|
||||
APIv3.getVertxInstance().setPeriodic(TimeUnit.MINUTES.toMillis(1), (id) -> updateCache());
|
||||
APIv3.getVertxInstance().setPeriodic(TimeUnit.SECONDS.toMillis(15), (id) -> updateCache());
|
||||
APIv3.getVertxInstance().setPeriodic(TimeUnit.MINUTES.toMillis(1), (id) -> updateTimedOutServers());
|
||||
}
|
||||
|
||||
|
@ -45,7 +45,7 @@ public final class ServerGroup {
|
||||
}
|
||||
|
||||
static {
|
||||
APIv3.getVertxInstance().setPeriodic(TimeUnit.MINUTES.toMillis(1), (id) -> updateCache());
|
||||
APIv3.getVertxInstance().setPeriodic(TimeUnit.SECONDS.toMillis(15), (id) -> updateCache());
|
||||
}
|
||||
|
||||
public static void updateCache() {
|
||||
|
Loading…
Reference in New Issue
Block a user