[skip ci]Remove unused code (#10597)

Signed-off-by: fishpenguin <kun.yu@zilliz.com>
pull/10605/head
yukun 2021-10-25 20:30:48 +08:00 committed by GitHub
parent ee5a4fcde4
commit 5f5949cf2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 9 deletions

View File

@ -312,15 +312,6 @@ func (ri *retentionInfo) retention() error {
}
}
ri.mutex.RUnlock()
// ri.lastRetentionTime.Range(func(k, v interface{}) bool {
// if v.(int64)+checkTime < timeNow {
// err := ri.newExpiredCleanUp(k.(string))
// if err != nil {
// log.Warn("Retention expired clean failed", zap.Any("error", err))
// }
// }
// return true
// })
}
}
}