From f64b6e8a43f4873e09726f4a3bc66be16b8b357a Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Thu, 7 Sep 2023 12:19:52 +0800 Subject: [PATCH] 1 --- server/websocket/internal/logic/datatransferlogic.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/websocket/internal/logic/datatransferlogic.go b/server/websocket/internal/logic/datatransferlogic.go index d66990fb..4d2ae3c3 100644 --- a/server/websocket/internal/logic/datatransferlogic.go +++ b/server/websocket/internal/logic/datatransferlogic.go @@ -217,7 +217,7 @@ func (l *DataTransferLogic) setConnPool(conn *websocket.Conn, userInfo *auth.Use func getCacheChanLenByLevel(level int) int { switch level { case 1: - return 50 + return 10 case 2: return 100 case 3: @@ -225,7 +225,7 @@ func getCacheChanLenByLevel(level int) int { case 4: return 1000 default: - return 50 + return 10 } }