mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-05-17 04:59:54 +00:00
fix[handler]: ChannelDuplexHandler doesn't need to be used ChannelHandler.Sharable
This commit is contained in:
@@ -17,7 +17,6 @@ import com.zfoo.net.packet.EncodedPacketInfo;
|
||||
import com.zfoo.net.packet.common.Heartbeat;
|
||||
import com.zfoo.net.util.SessionUtils;
|
||||
import io.netty.channel.ChannelDuplexHandler;
|
||||
import io.netty.channel.ChannelHandler;
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
import io.netty.handler.timeout.IdleState;
|
||||
import io.netty.handler.timeout.IdleStateEvent;
|
||||
@@ -27,7 +26,6 @@ import org.slf4j.LoggerFactory;
|
||||
/**
|
||||
* @author godotg
|
||||
*/
|
||||
@ChannelHandler.Sharable
|
||||
public class ClientIdleHandler extends ChannelDuplexHandler {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(ClientIdleHandler.class);
|
||||
|
||||
@@ -15,7 +15,6 @@ package com.zfoo.net.handler.idle;
|
||||
|
||||
import com.zfoo.net.util.SessionUtils;
|
||||
import io.netty.channel.ChannelDuplexHandler;
|
||||
import io.netty.channel.ChannelHandler;
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
import io.netty.handler.timeout.IdleState;
|
||||
import io.netty.handler.timeout.IdleStateEvent;
|
||||
@@ -25,7 +24,6 @@ import org.slf4j.LoggerFactory;
|
||||
/**
|
||||
* @author godotg
|
||||
*/
|
||||
@ChannelHandler.Sharable
|
||||
public class ServerIdleHandler extends ChannelDuplexHandler {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(ServerIdleHandler.class);
|
||||
|
||||
Reference in New Issue
Block a user