11
This commit is contained in:
parent
34b2aef763
commit
67fe103ac1
|
@ -40,7 +40,7 @@ func ConsumeWebsocketConnectCountCtlChanData(ctx context.Context) {
|
||||||
select {
|
select {
|
||||||
case num = <-websocketConnectCountCtlChan:
|
case num = <-websocketConnectCountCtlChan:
|
||||||
currentWebsocketConnectCount += num
|
currentWebsocketConnectCount += num
|
||||||
logx.Info("当前websocket连接总数:", currentWebsocketConnectCount)
|
//logx.Info("当前websocket连接总数:", currentWebsocketConnectCount)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -86,12 +86,12 @@ func (w *wsConnectItem) consumeRenderImageData() {
|
||||||
case data := <-w.extendRenderProperty.renderChan: //消费数据
|
case data := <-w.extendRenderProperty.renderChan: //消费数据
|
||||||
//标签不一样
|
//标签不一样
|
||||||
if data.RenderData.TemplateTag != w.extendRenderProperty.templateTag {
|
if data.RenderData.TemplateTag != w.extendRenderProperty.templateTag {
|
||||||
logx.Info("标签不一致,丢弃消息")
|
//logx.Info("标签不一致,丢弃消息")
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
//颜色不一致
|
//颜色不一致
|
||||||
if data.RenderData.TemplateTagColor.SelectedColorIndex != w.extendRenderProperty.selectColorIndex {
|
if data.RenderData.TemplateTagColor.SelectedColorIndex != w.extendRenderProperty.selectColorIndex {
|
||||||
logx.Info("颜色不一致,丢弃消息")
|
//logx.Info("颜色不一致,丢弃消息")
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
limitChan <- struct{}{}
|
limitChan <- struct{}{}
|
||||||
|
|
|
@ -70,7 +70,7 @@ func (r *reuseConnProcessor) allocationMessage(w *wsConnectItem, data []byte) {
|
||||||
createUserConnPoolElement(w.userId, w.guestId, wid)
|
createUserConnPoolElement(w.userId, w.guestId, wid)
|
||||||
rsp := w.respondDataFormat(constants.WEBSOCKET_CONNECT_SUCCESS, wid)
|
rsp := w.respondDataFormat(constants.WEBSOCKET_CONNECT_SUCCESS, wid)
|
||||||
w.sendToOutChan(rsp)
|
w.sendToOutChan(rsp)
|
||||||
logx.Info("重新绑定websocket连接标识成功")
|
//logx.Info("重新绑定websocket连接标识成功")
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取用户拼接部分(复用标识用到)
|
// 获取用户拼接部分(复用标识用到)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user