Fix plugin file reload comment (#4665)

Signed-off-by: Sven Nebel <nebel.sven@gmail.com>
This commit is contained in:
Sven Nebel 2021-06-05 14:06:25 +01:00 committed by GitHub
parent e2f70b976a
commit 47be274d34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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()

View file

@ -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