优化Netty客户端类

This commit is contained in:
seagull 2020-12-13 10:31:50 +08:00
parent b84adddd29
commit a0e9dc4f5e
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@ public class NettyClient {
private static final Logger log = LoggerFactory.getLogger(NettyClient.class); private static final Logger log = LoggerFactory.getLogger(NettyClient.class);
private static ClientHandler clientHandler; private static ClientHandler clientHandler;
public static void start() { public static void start() {
EventLoopGroup group = new NioEventLoopGroup(); EventLoopGroup group = new NioEventLoopGroup();
Bootstrap b = new Bootstrap(); Bootstrap b = new Bootstrap();