调整一下任务的关闭

This commit is contained in:
Yun
2025-10-04 21:33:57 +08:00
parent 62e0d03c9e
commit 793a8da1af
6 changed files with 47 additions and 60 deletions
+1 -1
View File
@@ -64,8 +64,8 @@ func InitHeartBeat(ctx context.Context, ref redis.UniversalClient, keyPrefix str
}
func (l *HeartBeat) Close() {
l.cancel()
l.cleanHeartbeat(true)
l.cancel()
l.wg.Wait()
}