调整一下任务的关闭
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user