Skip to content

Commit 465da07

Browse files
committed
lint
Signed-off-by: Alan Protasio <alanprot@gmail.com>
1 parent e8c9f1d commit 465da07

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

pkg/storage/tsdb/bucketindex/loader_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
"testing"
99
"time"
1010

11-
"github.com/cortexproject/cortex/pkg/storage/bucket"
1211
"github.com/go-kit/log"
1312
"github.com/oklog/ulid"
1413
"github.com/pkg/errors"
@@ -17,6 +16,8 @@ import (
1716
"github.com/stretchr/testify/assert"
1817
"github.com/stretchr/testify/require"
1918

19+
"github.com/cortexproject/cortex/pkg/storage/bucket"
20+
2021
cortex_testutil "github.com/cortexproject/cortex/pkg/storage/tsdb/testutil"
2122
"github.com/cortexproject/cortex/pkg/util/services"
2223
"github.com/cortexproject/cortex/pkg/util/test"

pkg/storage/tsdb/bucketindex/storage_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ import (
66
"strings"
77
"testing"
88

9-
"github.com/cortexproject/cortex/pkg/storage/bucket"
109
"github.com/go-kit/log"
1110
"github.com/stretchr/testify/assert"
1211
"github.com/stretchr/testify/require"
1312

13+
"github.com/cortexproject/cortex/pkg/storage/bucket"
14+
1415
"github.com/cortexproject/cortex/pkg/storage/tsdb/testutil"
1516
cortex_testutil "github.com/cortexproject/cortex/pkg/storage/tsdb/testutil"
1617
)

pkg/storegateway/bucket_stores.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,6 @@ type BucketStores struct {
7878
tenantsSynced prometheus.Gauge
7979
}
8080

81-
type BucketStoreWithLastError struct {
82-
*store.BucketStore
83-
err error
84-
}
85-
8681
// NewBucketStores makes a new BucketStores.
8782
func NewBucketStores(cfg tsdb.BlocksStorageConfig, shardingStrategy ShardingStrategy, bucketClient objstore.Bucket, limits *validation.Overrides, logLevel logging.Level, logger log.Logger, reg prometheus.Registerer) (*BucketStores, error) {
8883
cachingBucket, err := tsdb.CreateCachingBucket(cfg.BucketStore.ChunksCache, cfg.BucketStore.MetadataCache, bucketClient, logger, reg)
@@ -105,7 +100,7 @@ func NewBucketStores(cfg tsdb.BlocksStorageConfig, shardingStrategy ShardingStra
105100
bucket: cachingBucket,
106101
shardingStrategy: shardingStrategy,
107102
stores: map[string]*store.BucketStore{},
108-
storesErrors: map[string]error{},
103+
storesErrors: map[string]error{},
109104
logLevel: logLevel,
110105
bucketStoreMetrics: NewBucketStoreMetrics(),
111106
metaFetcherMetrics: NewMetadataFetcherMetrics(),

0 commit comments

Comments
 (0)