diff --git a/client/consul/sync.go b/client/consul/sync.go index f97b34449..d53c4a869 100644 --- a/client/consul/sync.go +++ b/client/consul/sync.go @@ -410,7 +410,7 @@ func (c *Syncer) RunHandlers() { handlers[name] = fn } c.periodicLock.RUnlock() - for name, fn := range handlers { + for _, fn := range handlers { fn() } }