From 8fb1220f1b4794e90f423181d893ed4dfcf583d6 Mon Sep 17 00:00:00 2001 From: tsosunchia <59512455+tsosunchia@users.noreply.github.com> Date: Sun, 13 Apr 2025 20:34:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=20wshandle/client.go=20?= =?UTF-8?q?=E8=B6=85=E6=97=B6/=E6=89=8B=E5=8A=A8=E7=BB=88=E7=AB=AFlog?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: tsosunchia <59512455+tsosunchia@users.noreply.github.com> --- wshandle/client.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/wshandle/client.go b/wshandle/client.go index dcef153..43d8715 100644 --- a/wshandle/client.go +++ b/wshandle/client.go @@ -111,11 +111,9 @@ func (c *WsConn) messageSendHandler() { // 等到了结果,直接退出 case <-c.Done: // 如果等待 1s 还是拿不到结果,不再等待,超时退出 - case <-time.After(time.Second): + case <-time.After(1 * time.Second): } - //os.Exit(1) - panic("请求超时退出") - // return + os.Exit(0) } } }