Set 0 to trigger the relist immediately

This commit is contained in:
Ayato Tokubi
2026-03-16 17:08:49 +00:00
parent 41451cb954
commit d3056cb0b7

View File

@@ -167,7 +167,9 @@ func (g *GenericPLEG) Start() {
g.isRunning = true
g.stopCh = make(chan struct{})
g.globalRelistTimer = g.clock.NewTimer(g.relistDuration.RelistPeriod)
// Set 0 to trigger the first relist immediately
// The RelistPeriod is set after the first relist.
g.globalRelistTimer = g.clock.NewTimer(0)
go func() {
for g.workerLoopIteration() {