Skip to content

Commit ec8fb7b

Browse files
committed
[删除]1. 删除不必要的编码器传递
1 parent 91b098d commit ec8fb7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

GameFrameX.Hotfix/StartUp/AppStartUpHotfixGameByMain.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public override async Task StartAsync()
1818
{
1919
// 启动网络服务
2020
// 设置压缩和解压缩
21-
await StartServerAsync<ClientMessageDecoderHandler, ClientMessageEncoderHandler>(new DefaultMessageCompressHandler(), new DefaultMessageDecompressHandler(),HotfixManager.GetListHttpHandler(), HotfixManager.GetHttpHandler);
21+
await StartServerAsync<ClientMessageDecoderHandler, ClientMessageEncoderHandler>(new DefaultMessageCompressHandler(), new DefaultMessageDecompressHandler(), HotfixManager.GetListHttpHandler(), HotfixManager.GetHttpHandler);
2222
// 启动Http服务
2323
// await HttpServer.Start(Setting.HttpPort, Setting.HttpsPort, HotfixManager.GetListHttpHandler(), HotfixManager.GetHttpHandler, null, Setting.HttpUrl);
2424
}
@@ -47,7 +47,7 @@ protected override ValueTask OnDisconnected(IAppSession appSession, CloseEventAr
4747
protected override async ValueTask OnConnected(IAppSession appSession)
4848
{
4949
LogHelper.Info("有外部客户端网络连接成功!。链接信息:SessionID:" + appSession.SessionID + " RemoteEndPoint:" + appSession.RemoteEndPoint);
50-
var netChannel = new DefaultNetWorkChannel(appSession, Setting, MessageEncoderHandler, null, appSession is WebSocketSession);
50+
var netChannel = new DefaultNetWorkChannel(appSession, Setting, null, appSession is WebSocketSession);
5151
var count = SessionManager.Count();
5252
if (count > Setting.MaxClientCount)
5353
{

0 commit comments

Comments
 (0)