Consistently stop tickers (#593)

This commit is contained in:
Raja Subramanian
2022-04-05 20:42:06 +05:30
committed by GitHub
parent b695376086
commit 92009b6428
6 changed files with 10 additions and 0 deletions
+1
View File
@@ -366,6 +366,7 @@ func (s *StreamAllocator) processEvents() {
func (s *StreamAllocator) ping() {
ticker := time.NewTicker(time.Second)
defer ticker.Stop()
for {
<-ticker.C