diff options
author | 2022-07-10 20:06:33 +0200 | |
---|---|---|
committer | 2022-07-10 11:06:33 -0700 | |
commit | c2dbb7141a7c95aa521a41b27bed3af25de8f546 (patch) | |
tree | 3af5d63a0dccaa769507e34a32b6378ccef880c4 /plugin/backend_lookup.go | |
parent | abc5ac8017b0f434b5845321fb1f405ded7774d4 (diff) | |
download | coredns-c2dbb7141a7c95aa521a41b27bed3af25de8f546.tar.gz coredns-c2dbb7141a7c95aa521a41b27bed3af25de8f546.tar.zst coredns-c2dbb7141a7c95aa521a41b27bed3af25de8f546.zip |
add golangci-lint linter (#5499)
Diffstat (limited to 'plugin/backend_lookup.go')
-rw-r--r-- | plugin/backend_lookup.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/plugin/backend_lookup.go b/plugin/backend_lookup.go index d168ab1a1..0887bb4dc 100644 --- a/plugin/backend_lookup.go +++ b/plugin/backend_lookup.go @@ -23,7 +23,6 @@ func A(ctx context.Context, b ServiceBackend, zone string, state request.Request dup := make(map[string]struct{}) for _, serv := range services { - what, ip := serv.HostType() switch what { @@ -97,7 +96,6 @@ func AAAA(ctx context.Context, b ServiceBackend, zone string, state request.Requ dup := make(map[string]struct{}) for _, serv := range services { - what, ip := serv.HostType() switch what { @@ -344,7 +342,6 @@ func CNAME(ctx context.Context, b ServiceBackend, zone string, state request.Req // TXT returns TXT records from Backend or an error. func TXT(ctx context.Context, b ServiceBackend, zone string, state request.Request, previousRecords []dns.RR, opt Options) (records []dns.RR, truncated bool, err error) { - services, err := b.Services(ctx, state, false, opt) if err != nil { return nil, false, err @@ -353,7 +350,6 @@ func TXT(ctx context.Context, b ServiceBackend, zone string, state request.Reque dup := make(map[string]struct{}) for _, serv := range services { - what, _ := serv.HostType() switch what { @@ -405,7 +401,6 @@ func TXT(ctx context.Context, b ServiceBackend, zone string, state request.Reque dup[serv.Text] = struct{}{} records = append(records, serv.NewTXT(state.QName())) } - } } @@ -507,7 +502,6 @@ func BackendError(ctx context.Context, b ServiceBackend, zone string, rcode int, } func newAddress(s msg.Service, name string, ip net.IP, what uint16) dns.RR { - hdr := dns.RR_Header{Name: name, Rrtype: what, Class: dns.ClassINET, Ttl: s.TTL} if what == dns.TypeA { |