From 9f6d7c2e82e4539e5e9b64a3474ca349908c4147 Mon Sep 17 00:00:00 2001 From: creeper123123321 <7974274+creeper123123321@users.noreply.github.com> Date: Mon, 13 Apr 2020 11:57:12 -0300 Subject: [PATCH] fix name --- .../java/com/velocitypowered/proxy/VelocityServer.java | 2 +- .../velocitypowered/proxy/network/ConnectionManager.java | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/VelocityServer.java b/proxy/src/main/java/com/velocitypowered/proxy/VelocityServer.java index cc92a4ae7..31ef34609 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/VelocityServer.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/VelocityServer.java @@ -271,7 +271,7 @@ public class VelocityServer implements ProxyServer { } public ChannelInitializer getBackendChannelInitializer() { - return this.cm.backendChannelInitializerHolder.get(); + return this.cm.backendChannelInitializer.get(); } public boolean isShutdown() { diff --git a/proxy/src/main/java/com/velocitypowered/proxy/network/ConnectionManager.java b/proxy/src/main/java/com/velocitypowered/proxy/network/ConnectionManager.java index c0ebd11c5..649830544 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/network/ConnectionManager.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/network/ConnectionManager.java @@ -47,7 +47,7 @@ public final class ConnectionManager { @SuppressWarnings("WeakerAccess") public final ServerChannelInitializerHolder serverChannelInitializer; @SuppressWarnings("WeakerAccess") - public final BackendChannelInitializerHolder backendChannelInitializerHolder; + public final BackendChannelInitializerHolder backendChannelInitializer; private final DnsAddressResolverGroup resolverGroup; private final AsyncHttpClient httpClient; @@ -64,7 +64,7 @@ public final class ConnectionManager { this.workerGroup = this.transportType.createEventLoopGroup(TransportType.Type.WORKER); this.serverChannelInitializer = new ServerChannelInitializerHolder( new ServerChannelInitializer(this.server)); - this.backendChannelInitializerHolder = new BackendChannelInitializerHolder( + this.backendChannelInitializer = new BackendChannelInitializerHolder( new BackendChannelInitializer(this.server)); this.resolverGroup = new DnsAddressResolverGroup(new DnsNameResolverBuilder() .channelType(this.transportType.datagramChannelClass) @@ -209,7 +209,7 @@ public final class ConnectionManager { return httpClient; } - public BackendChannelInitializerHolder getBackendChannelInitializerHolder() { - return this.backendChannelInitializerHolder; + public BackendChannelInitializerHolder getBackendChannelInitializer() { + return this.backendChannelInitializer; } }