Add missing timer reset (#15134)

This commit is contained in:
Charlie Voiselle
2022-11-03 18:57:57 -04:00
committed by GitHub
parent ca06227c88
commit 748a99db39
2 changed files with 5 additions and 0 deletions

3
.changelog/15134.txt Normal file
View File

@@ -0,0 +1,3 @@
```release-note:bug
cleanup: fixed missing timer.Reset for plan queue stat emitter
```

View File

@@ -201,6 +201,8 @@ func (q *PlanQueue) EmitStats(period time.Duration, stopCh <-chan struct{}) {
defer stop()
for {
timer.Reset(period)
select {
case <-timer.C:
stats := q.Stats()