mirror of
https://github.com/prometheus/prometheus
synced 2025-02-19 05:57:01 +00:00
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
Block a user