This commit is contained in:
laodaming 2023-07-27 10:08:30 +08:00
parent 2b30911ec6
commit 2cb4549f00

View File

@ -143,7 +143,7 @@ func (l *DataTransferLogic) checkAuth(svcCtx *svc.ServiceContext, r *http.Reques
// 心跳 // 心跳
func (w *wsConnectItem) heartbeat() { func (w *wsConnectItem) heartbeat() {
tick := time.Tick(time.Second * 10) tick := time.Tick(time.Second * 5)
for { for {
select { select {
case <-w.closeChan: case <-w.closeChan: