mirror of
https://github.com/pgsty/minio.git
synced 2026-07-20 20:50:22 +03:00
Run modernize (#21546)
`go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest -fix -test ./...` executed. `go generate ./...` ran afterwards to keep generated.
This commit is contained in:
+2
-2
@@ -175,7 +175,7 @@ func BenchmarkAuthenticateNode(b *testing.B) {
|
||||
fn := authenticateNode
|
||||
b.ResetTimer()
|
||||
b.ReportAllocs()
|
||||
for i := 0; i < b.N; i++ {
|
||||
for b.Loop() {
|
||||
fn(creds.AccessKey, creds.SecretKey)
|
||||
}
|
||||
})
|
||||
@@ -183,7 +183,7 @@ func BenchmarkAuthenticateNode(b *testing.B) {
|
||||
fn := newCachedAuthToken()
|
||||
b.ResetTimer()
|
||||
b.ReportAllocs()
|
||||
for i := 0; i < b.N; i++ {
|
||||
for b.Loop() {
|
||||
fn()
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user