更改 wshandle/client.go 超时/手动终端log显示

Signed-off-by: tsosunchia <59512455+tsosunchia@users.noreply.github.com>
This commit is contained in:
tsosunchia
2025-04-13 20:34:38 +08:00
parent 90b1a3c1ad
commit 8fb1220f1b

View File

@@ -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)
}
}
}