From 14ffd11cbf9208617ab2da0db8ad580ad7975c0a Mon Sep 17 00:00:00 2001 From: Keuin Date: Sat, 12 Mar 2022 21:32:00 +0800 Subject: Make it compile. --- src/main/java/com/keuin/crosslink/plugin/bungee/BungeeAccessor.java | 3 ++- src/test/java/com/keuin/crosslink/testable/FakeRouter.java | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/com/keuin/crosslink/plugin/bungee/BungeeAccessor.java b/src/main/java/com/keuin/crosslink/plugin/bungee/BungeeAccessor.java index 957927e..525f16b 100644 --- a/src/main/java/com/keuin/crosslink/plugin/bungee/BungeeAccessor.java +++ b/src/main/java/com/keuin/crosslink/plugin/bungee/BungeeAccessor.java @@ -41,7 +41,8 @@ public class BungeeAccessor implements ICoreAccessor { var checker = new BungeeServerStatusChecker( plugin.getProxy().getServers().values(), plugin, - GlobalConfigManager.getInstance().getConfig().pingTimeoutMillis() +// GlobalConfigManager.getInstance().getConfig().pingTimeoutMillis() + 2000 ); checker.ping((infoMap) -> callback.accept(infoMap.entrySet().stream().map( (ent) -> new ServerInfo(ent.getKey().getName(), ent.getValue()) diff --git a/src/test/java/com/keuin/crosslink/testable/FakeRouter.java b/src/test/java/com/keuin/crosslink/testable/FakeRouter.java index 0512b3e..f5ee0e3 100644 --- a/src/test/java/com/keuin/crosslink/testable/FakeRouter.java +++ b/src/test/java/com/keuin/crosslink/testable/FakeRouter.java @@ -47,6 +47,11 @@ public class FakeRouter implements IRouter { this.rules = newChain; } + @Override + public void clearEndpoints() { + endpoints.clear(); + } + public List getMessages() { return messages; } -- cgit v1.2.3