mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
send notifies after adding zones all zones (#5774)
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
This commit is contained in:
@@ -45,6 +45,9 @@ func setup(c *caddy.Controller) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := a.Notify(); err != nil {
|
||||
log.Warning(err)
|
||||
}
|
||||
if a.loader.ReloadInterval == 0 {
|
||||
return nil
|
||||
}
|
||||
@@ -57,6 +60,9 @@ func setup(c *caddy.Controller) error {
|
||||
return
|
||||
case <-ticker.C:
|
||||
a.Walk()
|
||||
if err := a.Notify(); err != nil {
|
||||
log.Warning(err)
|
||||
}
|
||||
}
|
||||
}
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user