mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 00:04:15 -04:00
chore(lint): modernize Go (#7536)
Use modern Go constructs through the modernize analyzer from the golang.org/x/tools package. Signed-off-by: Ville Vesilehto <ville@vesilehto.fi>
This commit is contained in:
@@ -273,8 +273,7 @@ func BenchmarkLogged(b *testing.B) {
|
||||
|
||||
rec := dnstest.NewRecorder(&test.ResponseWriter{})
|
||||
|
||||
b.StartTimer()
|
||||
for range b.N {
|
||||
for b.Loop() {
|
||||
logger.ServeDNS(ctx, rec, r)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user