From 3defd9a145c565398349ea622b6ad1a78f4c22a5 Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Wed, 23 Aug 2023 15:35:58 +0800 Subject: [PATCH] fix --- 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 e6aadf86..64f5634e 100644 --- a/server/websocket/internal/logic/datatransferlogic.go +++ b/server/websocket/internal/logic/datatransferlogic.go @@ -70,8 +70,8 @@ type wsConnectItem struct { closeChan chan struct{} //ws连接关闭chan(基本属性) isClose bool //是否已经关闭(基本属性) uniqueId string //ws连接唯一标识(基本属性) - inChan chan []byte //接受消息缓冲通道(基本属性) - outChan chan []byte //发送回客户端的消息(基本属性) + inChan chan []byte //接受消息缓冲池(基本属性) + outChan chan []byte //要发送回客户端的消息缓冲池(基本属性) mutex sync.Mutex //互斥锁(关闭连接方法中用) userId int64 //用户id(基本属性) guestId int64 //游客id(基本属性)