From 8961f7c581f632dafbea354b0462391889124680 Mon Sep 17 00:00:00 2001 From: ychao_1983 Date: Wed, 29 Dec 2021 16:12:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routers/actionnotification.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routers/actionnotification.go b/routers/actionnotification.go index 7b014ef4e..97a51db08 100644 --- a/routers/actionnotification.go +++ b/routers/actionnotification.go @@ -43,10 +43,10 @@ func WriteLastTenActionsIfHave(conn *websocket.Conn) { size := socketwrap.LastTenActionsQueue.Queue.Len() if size > 0 { tempE := socketwrap.LastTenActionsQueue.Queue.Front() - conn.WriteJSON(tempE) + conn.WriteJSON(tempE.Value) for i := 1; i < size; i++ { tempE = tempE.Next() - conn.WriteJSON(tempE) + conn.WriteJSON(tempE.Value) } }