mirror of
https://github.com/coredns/coredns.git
synced 2025-12-07 02:45:11 -05:00
Configurable zone reload interval in file plugin (#2110)
* Configurable zone reload interval in file plugin * passing reload config from auto plugin to file plugin. removed noReload property from Zone struct. fixed tests based on short file reload hack
This commit is contained in:
@@ -2,7 +2,7 @@ package file
|
||||
|
||||
// OnShutdown shuts down any running go-routines for this zone.
|
||||
func (z *Zone) OnShutdown() error {
|
||||
if !z.NoReload {
|
||||
if 0 < z.ReloadInterval {
|
||||
z.reloadShutdown <- true
|
||||
}
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user