summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeuin <[email protected]>2022-03-12 21:32:00 +0800
committerKeuin <[email protected]>2022-03-12 21:32:00 +0800
commit14ffd11cbf9208617ab2da0db8ad580ad7975c0a (patch)
treea2ced5f4b2a2625c9f5e4d335e9f68dec1655fce /src
parent22bcea2563b2bcc669fc5b9d44c481b769f2aea0 (diff)
Make it compile.
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/keuin/crosslink/plugin/bungee/BungeeAccessor.java3
-rw-r--r--src/test/java/com/keuin/crosslink/testable/FakeRouter.java5
2 files changed, 7 insertions, 1 deletions
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<IMessage> getMessages() {
return messages;
}