mirror of https://github.com/milvus-io/milvus.git
fix: checkResultTicker leak (#35377)
https://github.com/milvus-io/milvus/issues/35376 Signed-off-by: fengjun2016 <jornfeng@gmail.com>pull/35439/head
parent
9abc0265c4
commit
f5b4a972a0
|
@ -359,6 +359,7 @@ func (c *compactionPlanHandler) loopCheck() {
|
|||
log.Info("compactionPlanHandler start loop check", zap.Any("check result interval", interval))
|
||||
defer c.stopWg.Done()
|
||||
checkResultTicker := time.NewTicker(interval)
|
||||
defer checkResultTicker.Stop()
|
||||
for {
|
||||
select {
|
||||
case <-c.stopCh:
|
||||
|
|
Loading…
Reference in New Issue