This commit is contained in:
Nicolas Bachschmidt 2026-08-14 16:56:34 +02:00 committed by GitHub
commit b09a4df25a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -27,7 +27,8 @@ import (
func (c *Controller) clusterResync(stopCh <-chan struct{}, wg *sync.WaitGroup) { func (c *Controller) clusterResync(stopCh <-chan struct{}, wg *sync.WaitGroup) {
defer wg.Done() defer wg.Done()
ticker := time.NewTicker(c.opConfig.ResyncPeriod.Duration) period := min(c.opConfig.ResyncPeriod.Duration, c.opConfig.RepairPeriod.Duration)
ticker := time.NewTicker(period)
for { for {
select { select {