This commit is contained in:
laodaming 2023-10-07 16:03:54 +08:00
parent 34b2aef763
commit 67fe103ac1
3 changed files with 4 additions and 4 deletions

View File

@ -40,7 +40,7 @@ func ConsumeWebsocketConnectCountCtlChanData(ctx context.Context) {
select {
case num = <-websocketConnectCountCtlChan:
currentWebsocketConnectCount += num
logx.Info("当前websocket连接总数:", currentWebsocketConnectCount)
//logx.Info("当前websocket连接总数:", currentWebsocketConnectCount)
}
}
}

View File

@ -86,12 +86,12 @@ func (w *wsConnectItem) consumeRenderImageData() {
case data := <-w.extendRenderProperty.renderChan: //消费数据
//标签不一样
if data.RenderData.TemplateTag != w.extendRenderProperty.templateTag {
logx.Info("标签不一致,丢弃消息")
//logx.Info("标签不一致,丢弃消息")
continue
}
//颜色不一致
if data.RenderData.TemplateTagColor.SelectedColorIndex != w.extendRenderProperty.selectColorIndex {
logx.Info("颜色不一致,丢弃消息")
//logx.Info("颜色不一致,丢弃消息")
continue
}
limitChan <- struct{}{}

View File

@ -70,7 +70,7 @@ func (r *reuseConnProcessor) allocationMessage(w *wsConnectItem, data []byte) {
createUserConnPoolElement(w.userId, w.guestId, wid)
rsp := w.respondDataFormat(constants.WEBSOCKET_CONNECT_SUCCESS, wid)
w.sendToOutChan(rsp)
logx.Info("重新绑定websocket连接标识成功")
//logx.Info("重新绑定websocket连接标识成功")
}
// 获取用户拼接部分(复用标识用到)