From 9e6054ca0612a05ec2b698b8a63db7605c600725 Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Fri, 05 Mar 2021 14:51:08 +0800 Subject: [PATCH] modify --- src/main/java/com/xcong/excoin/netty/handler/TcpServerHandler.java | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/xcong/excoin/netty/handler/TcpServerHandler.java b/src/main/java/com/xcong/excoin/netty/handler/TcpServerHandler.java index bc93484..11d7a65 100644 --- a/src/main/java/com/xcong/excoin/netty/handler/TcpServerHandler.java +++ b/src/main/java/com/xcong/excoin/netty/handler/TcpServerHandler.java @@ -1,6 +1,6 @@ package com.xcong.excoin.netty.handler; -import com.xcong.excoin.netty.common.ChannelManager; +import com.xcong.excoin.netty.common.ServerChannelManager; import io.netty.channel.ChannelHandler; import io.netty.channel.ChannelHandlerContext; import io.netty.channel.ChannelInboundHandlerAdapter; @@ -20,13 +20,13 @@ @Override public void channelActive(ChannelHandlerContext ctx) { log.info("[tcp客户端连入服务器]"); - ChannelManager.addTcpChannel(ctx.channel()); + ServerChannelManager.addTcpChannel(ctx.channel()); } @Override public void channelInactive(ChannelHandlerContext ctx) { log.info("[tcp客户端断开服务器]"); - ChannelManager.removeTcpChannel(ctx.channel()); + ServerChannelManager.removeTcpChannel(ctx.channel()); } @Override -- Gitblit v1.9.1