From ff8cb952d823878b17ddc730ca5f2306b0f7b631 Mon Sep 17 00:00:00 2001 From: Ben Ye Date: Sat, 12 Aug 2023 14:58:57 -0700 Subject: [PATCH] fix lint Signed-off-by: Ben Ye --- pkg/store/bucket_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/store/bucket_test.go b/pkg/store/bucket_test.go index 6ab0154f7ce..c93b4c5e5a7 100644 --- a/pkg/store/bucket_test.go +++ b/pkg/store/bucket_test.go @@ -31,6 +31,7 @@ import ( "github.com/leanovate/gopter/prop" "github.com/oklog/ulid" "github.com/prometheus/client_golang/prometheus" + "github.com/prometheus/client_golang/prometheus/promauto" promtest "github.com/prometheus/client_golang/prometheus/testutil" "github.com/prometheus/prometheus/model/labels" "github.com/prometheus/prometheus/model/relabel" @@ -2728,7 +2729,7 @@ func benchmarkBlockSeriesWithConcurrency(b *testing.B, concurrency int, blockMet wg := sync.WaitGroup{} wg.Add(concurrency) - dummyCounter := prometheus.NewCounter(prometheus.CounterOpts{}) + dummyCounter := promauto.NewCounter(prometheus.CounterOpts{}) for w := 0; w < concurrency; w++ { go func() { defer wg.Done()