Commit 47be274d authored by Sven Nebel's avatar Sven Nebel Committed by GitHub

Fix plugin file reload comment (#4665)

Signed-off-by: default avatarSven Nebel <nebel.sven@gmail.com>
parent e2f70b97
......@@ -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()
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment