perf: 优化性能

This commit is contained in:
2023-06-02 15:54:41 +08:00
parent 0ca763ebdb
commit 9c5c8e77ff
5 changed files with 2 additions and 10 deletions

View File

@@ -57,6 +57,7 @@ public abstract class BallAPI {
@NotNull
private final EventLoopGroup executors;
protected Channel channel;
private boolean enabled;
private boolean connected;

View File

@@ -17,10 +17,6 @@ import java.util.logging.Level;
@ChannelHandler.Sharable
public class BallChannelHandler extends SimpleChannelInboundHandler<String> {
public BallChannelHandler() {
super(true);
}
@Override
protected void channelRead0(ChannelHandlerContext context, String message) {
if ("pong".equals(message)) {