Add missing timer reset (#15134)

This commit is contained in:
Charlie Voiselle 2022-11-03 18:57:57 -04:00 committed by GitHub
parent 654ae1d591
commit 83e43e01c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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()