discovery: Cleanup ticker
This commit is contained in:
parent
fe926e7829
commit
73e829137b
|
@ -152,6 +152,8 @@ func (m *Manager) runProvider(ctx context.Context, poolKey poolKey, updates chan
|
|||
|
||||
func (m *Manager) runUpdater(ctx context.Context) {
|
||||
ticker := time.NewTicker(5 * time.Second)
|
||||
defer ticker.Stop()
|
||||
|
||||
for {
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
|
|
Loading…
Reference in New Issue