mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
Exporting Zone.File to avoid getters and setters Updating getter and setter for Zone.File to be less racy Renaming GetFile to File in zone plugin
This commit is contained in:
committed by
Miek Gieben
parent
908d4fbd23
commit
c2780f42c4
@@ -31,9 +31,10 @@ func (a Auto) Walk() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
if _, ok := a.Zones.Z[origin]; ok {
|
||||
if z, ok := a.Zones.Z[origin]; ok {
|
||||
// we already have this zone
|
||||
toDelete[origin] = false
|
||||
z.SetFile(path)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user