Skip to content

Commit c28c1f3

Browse files
committed
linter
1 parent 2f176d2 commit c28c1f3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pkg/storage/ingest/version_test.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ import (
66
"fmt"
77
"testing"
88

9-
"github.com/grafana/mimir/pkg/mimirpb"
10-
"github.com/grafana/mimir/pkg/util/test"
119
"github.com/stretchr/testify/require"
1210
"github.com/twmb/franz-go/pkg/kgo"
11+
12+
"github.com/grafana/mimir/pkg/mimirpb"
13+
"github.com/grafana/mimir/pkg/util/test"
1314
)
1415

1516
func TestRecordVersionHeader(t *testing.T) {
@@ -225,7 +226,7 @@ func BenchmarkDeserializeRecordContent(b *testing.B) {
225226
require.NoError(b, err)
226227

227228
b.Run("deserialize v1", func(b *testing.B) {
228-
for b.Loop() {
229+
for range b.N {
229230
wr := &mimirpb.PreallocWriteRequest{}
230231
err := DeserializeRecordContent(v1bytes, wr, 1)
231232
if err != nil {
@@ -236,7 +237,7 @@ func BenchmarkDeserializeRecordContent(b *testing.B) {
236237
})
237238

238239
b.Run("deserialize v2", func(b *testing.B) {
239-
for b.Loop() {
240+
for range b.N {
240241
wr := &mimirpb.PreallocWriteRequest{}
241242
err := DeserializeRecordContent(v2bytes, wr, 2)
242243
if err != nil {

0 commit comments

Comments
 (0)