diff --git a/plugin/auto/zone.go b/plugin/auto/zone.go index dff376bf9..bb8118613 100644 --- a/plugin/auto/zone.go +++ b/plugin/auto/zone.go @@ -41,7 +41,7 @@ func (z *Zones) Zones(name string) *file.Zone { return zo } -// Add adds a new zone into z. If zo.NoReload is false, the +// Add adds a new zone into z. If z.ReloadInterval is not zero, the // reload goroutine is started. func (z *Zones) Add(zo *file.Zone, name string, t *transfer.Transfer) { z.Lock() diff --git a/plugin/file/reload.go b/plugin/file/reload.go index 426a986b0..a154c0467 100644 --- a/plugin/file/reload.go +++ b/plugin/file/reload.go @@ -7,7 +7,7 @@ import ( "github.com/coredns/coredns/plugin/transfer" ) -// Reload reloads a zone when it is changed on disk. If z.NoReload is true, no reloading will be done. +// Reload reloads a zone when it is changed on disk. If z.ReloadInterval is zero, no reloading will be done. func (z *Zone) Reload(t *transfer.Transfer) error { if z.ReloadInterval == 0 { return nil