【fix】修复无法启动问题

This commit is contained in:
wujiawei
2025-04-30 16:08:53 +08:00
parent 9dc36fe8e9
commit 66956636b9
5 changed files with 37 additions and 8 deletions

View File

@ -0,0 +1,25 @@
package org.framework.lazy.cloud.network.heartbeat.common;
import io.netty.channel.Channel;
import io.netty.channel.ChannelHandlerContext;
import lombok.Data;
@Data
public class NettyChannelContext {
private ChannelHandlerContext channelHandlerContext;
/**
* 获取当前通道上下文中的通道
*
* @return 上下问通道
*/
public Channel getChannel() {
return channelHandlerContext.channel();
}
}