Remove server auto-fetching due to instability

This commit is contained in:
William278 committed 2023-02-11 13:12:35 +00:00
1 parent d928ee6ade
commit eb4652d6ff
17 files changed
+43 -161

No files matched your search

@@ -23,11 +23,6 @@ public abstract class Messenger implements AutoCloseable {
*/
protected HashMap<UUID, CompletableFuture<Request>> processingMessages;
/**
* List of pending futures for processing {@link #fetchServerName(OnlineUser)} requests
*/
protected List<CompletableFuture<String>> serverNameRequests;
/**
* List of pending futures for processing {@link #getOnlinePlayerNames(OnlineUser)} requests
*/
@@ -60,7 +55,6 @@ public abstract class Messenger implements AutoCloseable {
*/
public void initialize(@NotNull HuskHomes implementor) {
this.processingMessages = new HashMap<>();
this.serverNameRequests = new ArrayList<>();
this.onlinePlayerNamesRequests = new ArrayList<>();
this.onlineServersRequests = new ArrayList<>();
this.clusterId = implementor.getSettings().clusterId;
@@ -94,14 +88,6 @@ public abstract class Messenger implements AutoCloseable {
.findFirst()));
}
/**
* Fetch the name of this server on the proxy network
*
* @param requester {@link OnlineUser} to send the request
* @return Future returning the name of this server on the network
*/
public abstract CompletableFuture<String> fetchServerName(@NotNull OnlineUser requester);
/**
* Fetch a list of online server names proxy
*