From a9b8df41f706d80ab74f36ad1eca22a7b7c2ff42 Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Wed, 30 Aug 2023 18:00:26 +0800 Subject: [PATCH] fix --- .../websocket/internal/logic/allocation_processing_factory.go | 4 ++-- server/websocket/internal/logic/ws_render_image.go | 2 +- server/websocket/internal/logic/ws_reuse_last_connect.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/server/websocket/internal/logic/allocation_processing_factory.go b/server/websocket/internal/logic/allocation_processing_factory.go index 19810773..4eb19507 100644 --- a/server/websocket/internal/logic/allocation_processing_factory.go +++ b/server/websocket/internal/logic/allocation_processing_factory.go @@ -19,10 +19,10 @@ func (w *wsConnectItem) newAllocationProcessor(msgType constants.Websocket) allo switch msgType { //图片渲染 case constants.WEBSOCKET_RENDER_IMAGE: - obj = &renderProcessor{w} + obj = &renderProcessor{*w} //刷新重连请求恢复上次连接的标识 case constants.WEBSOCKET_REQUEST_REUSE_LAST_CONNECT: - obj = &reuseConnProcessor{w} + obj = &reuseConnProcessor{*w} default: } diff --git a/server/websocket/internal/logic/ws_render_image.go b/server/websocket/internal/logic/ws_render_image.go index 78f65fbf..bb489915 100644 --- a/server/websocket/internal/logic/ws_render_image.go +++ b/server/websocket/internal/logic/ws_render_image.go @@ -20,7 +20,7 @@ import ( // 渲染处理器 type renderProcessor struct { - w *wsConnectItem + w wsConnectItem } // 云渲染属性 diff --git a/server/websocket/internal/logic/ws_reuse_last_connect.go b/server/websocket/internal/logic/ws_reuse_last_connect.go index e826732c..88ee0894 100644 --- a/server/websocket/internal/logic/ws_reuse_last_connect.go +++ b/server/websocket/internal/logic/ws_reuse_last_connect.go @@ -11,7 +11,7 @@ import ( // 复用连接处理器 type reuseConnProcessor struct { - w *wsConnectItem + w wsConnectItem } func (r *reuseConnProcessor) allocationMessage(data []byte) {