chore: bump golangci-lint to v2.11.4 (#7983)

This commit is contained in:
Ville Vesilehto
2026-03-31 00:39:09 +03:00
committed by GitHub
parent 4091e650fe
commit 2ba4340362
8 changed files with 34 additions and 36 deletions

View File

@@ -63,7 +63,7 @@ var tagByProvider = map[string]traceTags{
}
type trace struct {
count uint64 // as per Go spec, needs to be first element in a struct
count atomic.Uint64 // as per Go spec, needs to be first element in a struct
Next plugin.Handler
Endpoint string
@@ -155,7 +155,7 @@ func (t *trace) Name() string { return "trace" }
func (t *trace) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error) {
shouldTrace := false
if t.every > 0 {
queryNr := atomic.AddUint64(&t.count, 1)
queryNr := t.count.Add(1)
if queryNr%t.every == 0 {
shouldTrace = true
}