From 63413d8a1eaace1cf2c88d2bfcf188a4b370e5c8 Mon Sep 17 00:00:00 2001 From: eson <9673575+githubcontent@user.noreply.gitee.com> Date: Sat, 7 Oct 2023 12:31:34 +0800 Subject: [PATCH] fix --- websocket.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/websocket.go b/websocket.go index 25dc281..420cad7 100644 --- a/websocket.go +++ b/websocket.go @@ -42,9 +42,9 @@ func queueHandler(w http.ResponseWriter, r *http.Request) { raddr := conn.RemoteAddr() // laddr := conn.LocalAddr() - log.Printf("%s 建立连接 当前unity处理机器数量 %d\n", raddr, DequeueHandler.RefCountAdd(1)) + fmt.Printf("%s 建立连接 当前unity处理机器数量 %d\n", raddr, DequeueHandler.RefCountAdd(1)) defer func() { - log.Printf("%s 退出连接 当前unity处理机器数量 %d\n", raddr, DequeueHandler.RefCountAdd(-1)) + fmt.Printf("%s 退出连接 当前unity处理机器数量 %d\n", raddr, DequeueHandler.RefCountAdd(-1)) }() for {