Skip to content

Commit 8b57e7b

Browse files
committed
lint
Signed-off-by: alanprot <[email protected]>
1 parent ccf1f59 commit 8b57e7b

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

pkg/ingester/client/compat.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ package client
33
import (
44
"fmt"
55

6-
"github.com/cortexproject/cortex/pkg/cortexpb"
76
"github.com/prometheus/common/model"
87
"github.com/prometheus/prometheus/model/labels"
98
"github.com/prometheus/prometheus/storage"
109
"github.com/prometheus/prometheus/tsdb/chunkenc"
1110
storecache "github.com/thanos-io/thanos/pkg/store/cache"
11+
12+
"github.com/cortexproject/cortex/pkg/cortexpb"
1213
)
1314

1415
// ToQueryRequest builds a QueryRequest proto.

pkg/ingester/ingester.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"context"
55
"flag"
66
"fmt"
7-
storecache "github.com/thanos-io/thanos/pkg/store/cache"
87
"html"
98
"io"
109
"math"
@@ -38,6 +37,7 @@ import (
3837
"github.com/thanos-io/objstore"
3938
"github.com/thanos-io/thanos/pkg/block/metadata"
4039
"github.com/thanos-io/thanos/pkg/shipper"
40+
storecache "github.com/thanos-io/thanos/pkg/store/cache"
4141
"github.com/thanos-io/thanos/pkg/store/storepb"
4242
"github.com/weaveworks/common/httpgrpc"
4343
"go.uber.org/atomic"
@@ -721,6 +721,9 @@ func New(cfg Config, limits *validation.Overrides, registerer prometheus.Registe
721721
r := prometheus.NewRegistry()
722722
registerer.MustRegister(newMatchCacheMetrics(r))
723723
i.matchersCache, err = storecache.NewMatchersCache(storecache.WithSize(cfg.MatchersCacheMaxItems), storecache.WithPromRegistry(r))
724+
if err != nil {
725+
return nil, err
726+
}
724727
}
725728

726729
i.metrics = newIngesterMetrics(registerer,

pkg/querier/remote_read.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
package querier
22

33
import (
4-
storecache "github.com/thanos-io/thanos/pkg/store/cache"
54
"net/http"
65

76
"github.com/go-kit/log"
87
"github.com/go-kit/log/level"
98
"github.com/prometheus/prometheus/storage"
9+
storecache "github.com/thanos-io/thanos/pkg/store/cache"
1010

1111
"github.com/cortexproject/cortex/pkg/ingester/client"
1212
"github.com/cortexproject/cortex/pkg/util"

0 commit comments

Comments
 (0)