Skip to content

Commit d8a21d5

Browse files
committed
fix linting
Signed-off-by: Albert <[email protected]>
1 parent 24e356e commit d8a21d5

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

pkg/compactor/compactor.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ type BlocksCompactorFactory func(
127127
) (compact.Compactor, compact.Planner, error)
128128

129129
// CompactorLimits defines limits used by the Compactor.
130-
type CompactorLimits interface {
130+
type CompactorLimits interface { //nolint
131131
CompactorTenantShardSize(userID string) int
132132
}
133133

pkg/compactor/shuffle_sharding_grouper.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"strings"
88
"time"
99

10-
"github.com/cortexproject/cortex/pkg/ring"
1110
"github.com/go-kit/kit/log"
1211
"github.com/go-kit/kit/log/level"
1312
"github.com/oklog/ulid"
@@ -18,6 +17,8 @@ import (
1817
"github.com/thanos-io/thanos/pkg/block/metadata"
1918
"github.com/thanos-io/thanos/pkg/compact"
2019
"github.com/thanos-io/thanos/pkg/objstore"
20+
21+
"github.com/cortexproject/cortex/pkg/ring"
2122
)
2223

2324
type ShuffleShardingGrouper struct {

pkg/compactor/shuffle_sharding_grouper_test.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import (
44
"testing"
55
"time"
66

7-
"github.com/cortexproject/cortex/pkg/ring"
8-
"github.com/cortexproject/cortex/pkg/util/validation"
97
"github.com/oklog/ulid"
108
"github.com/prometheus/client_golang/prometheus"
119
"github.com/prometheus/client_golang/prometheus/promauto"
@@ -14,6 +12,9 @@ import (
1412
"github.com/stretchr/testify/mock"
1513
"github.com/stretchr/testify/require"
1614
"github.com/thanos-io/thanos/pkg/block/metadata"
15+
16+
"github.com/cortexproject/cortex/pkg/ring"
17+
"github.com/cortexproject/cortex/pkg/util/validation"
1718
)
1819

1920
func TestShuffleShardingGrouper_Groups(t *testing.T) {

0 commit comments

Comments
 (0)