mirror of
https://github.com/coredns/coredns.git
synced 2026-01-20 15:41:18 -05:00
chore: Upgrade to golangci-lint v2 (#7236)
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
This commit is contained in:
@@ -8,9 +8,9 @@ import (
|
||||
|
||||
// Transfer implements the transfer.Transfer interface.
|
||||
func (a Auto) Transfer(zone string, serial uint32) (<-chan []dns.RR, error) {
|
||||
a.Zones.RLock()
|
||||
z, ok := a.Zones.Z[zone]
|
||||
a.Zones.RUnlock()
|
||||
a.RLock()
|
||||
z, ok := a.Z[zone]
|
||||
a.RUnlock()
|
||||
|
||||
if !ok || z == nil {
|
||||
return nil, transfer.ErrNotAuthoritative
|
||||
@@ -21,7 +21,7 @@ func (a Auto) Transfer(zone string, serial uint32) (<-chan []dns.RR, error) {
|
||||
// Notify sends notifies for all zones with secondaries configured with the transfer plugin
|
||||
func (a Auto) Notify() error {
|
||||
var err error
|
||||
for _, origin := range a.Zones.Names() {
|
||||
for _, origin := range a.Names() {
|
||||
e := a.transfer.Notify(origin)
|
||||
if e != nil {
|
||||
err = e
|
||||
|
||||
Reference in New Issue
Block a user