From d3cdbf19b53e24a1417364b098f7b8f71f36a208 Mon Sep 17 00:00:00 2001
From: wzy <wzy19931122ai@163.com>
Date: Sun, 28 Feb 2021 19:47:04 +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