diff options
author | 2020-07-08 09:00:26 -0700 | |
---|---|---|
committer | 2020-07-08 09:00:26 -0700 | |
commit | 614d08cba29ed4904d11008e795c081c4f392b77 (patch) | |
tree | e4601abda23ec9d18e2929433c260a37928e1344 /plugin/file/reload.go | |
parent | 68f1dd5ddf0451cc3a1b24a72c2965b8d896ffba (diff) | |
download | coredns-614d08cba29ed4904d11008e795c081c4f392b77.tar.gz coredns-614d08cba29ed4904d11008e795c081c4f392b77.tar.zst coredns-614d08cba29ed4904d11008e795c081c4f392b77.zip |
Revert "Implement notifies for transfer plugin (#3972)" (#3995)
This reverts commit 68f1dd5ddf0451cc3a1b24a72c2965b8d896ffba.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Diffstat (limited to 'plugin/file/reload.go')
-rw-r--r-- | plugin/file/reload.go | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/plugin/file/reload.go b/plugin/file/reload.go index 426a986b0..79db040fe 100644 --- a/plugin/file/reload.go +++ b/plugin/file/reload.go @@ -3,12 +3,10 @@ package file import ( "os" "time" - - "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. -func (z *Zone) Reload(t *transfer.Transfer) error { +func (z *Zone) Reload() error { if z.ReloadInterval == 0 { return nil } @@ -42,11 +40,7 @@ func (z *Zone) Reload(t *transfer.Transfer) error { z.Unlock() log.Infof("Successfully reloaded zone %q in %q with %d SOA serial", z.origin, zFile, z.Apex.SOA.Serial) - if t != nil { - if err := t.Notify(z.origin); err != nil { - log.Warningf("Failed sending notifies: %s", err) - } - } + z.Notify() case <-z.reloadShutdown: tick.Stop() |