Skip to content

Commit 60ae8e7

Browse files
committed
fix import files lint error
Signed-off-by: rubywtl <[email protected]>
1 parent d09f3d0 commit 60ae8e7

File tree

5 files changed

+8
-13
lines changed

5 files changed

+8
-13
lines changed

pkg/querier/tripperware/distributed_query.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ func (d distributedQueryMiddleware) newLogicalPlan(qs string, start time.Time, e
6363
logicalPlan := logicalplan.NewFromAST(expr, &qOpts, planOpts)
6464
optimizedPlan, _ := logicalPlan.Optimize(logicalplan.DefaultOptimizers)
6565

66-
//TODO: Add distributed query optimizer
67-
6866
return &optimizedPlan, nil
6967
}
7068

pkg/querier/tripperware/instantquery/instant_query_middlewares.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ package instantquery
33
import (
44
"time"
55

6+
"github.com/cortexproject/cortex/pkg/querier/tripperware"
67
"github.com/go-kit/log"
78
"github.com/thanos-io/thanos/pkg/querysharding"
8-
9-
"github.com/cortexproject/cortex/pkg/querier/tripperware"
109
)
1110

1211
func Middlewares(

pkg/querier/tripperware/instantquery/instant_query_middlewares_test.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,14 @@ import (
1010
"testing"
1111
"time"
1212

13+
"github.com/cortexproject/cortex/pkg/querier/tripperware"
14+
"github.com/cortexproject/cortex/pkg/util/validation"
1315
"github.com/go-kit/log"
1416
"github.com/stretchr/testify/require"
17+
"github.com/thanos-io/promql-engine/logicalplan"
1518
"github.com/thanos-io/thanos/pkg/querysharding"
1619
"github.com/weaveworks/common/middleware"
1720
"github.com/weaveworks/common/user"
18-
19-
"github.com/cortexproject/cortex/pkg/querier/tripperware"
20-
"github.com/cortexproject/cortex/pkg/util/validation"
21-
"github.com/thanos-io/promql-engine/logicalplan"
2221
)
2322

2423
const (

pkg/querier/tripperware/queryrange/query_range.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package queryrange
33
import (
44
"bytes"
55
"context"
6-
"github.com/thanos-io/promql-engine/logicalplan"
76
"io"
87
"net/http"
98
"net/url"
@@ -24,6 +23,7 @@ import (
2423

2524
"github.com/cortexproject/cortex/pkg/util/limiter"
2625
"github.com/cortexproject/cortex/pkg/util/spanlogger"
26+
"github.com/thanos-io/promql-engine/logicalplan"
2727
)
2828

2929
// StatusSuccess Prometheus success result.

pkg/querier/tripperware/queryrange/query_range_middlewares_test.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package queryrange
22

33
import (
44
"context"
5-
"github.com/thanos-io/promql-engine/logicalplan"
65
"io"
76
"net/http"
87
"net/http/httptest"
@@ -11,14 +10,14 @@ import (
1110
"testing"
1211
"time"
1312

13+
"github.com/cortexproject/cortex/pkg/querier/tripperware"
14+
"github.com/cortexproject/cortex/pkg/util/validation"
1415
"github.com/go-kit/log"
1516
"github.com/stretchr/testify/require"
17+
"github.com/thanos-io/promql-engine/logicalplan"
1618
"github.com/thanos-io/thanos/pkg/querysharding"
1719
"github.com/weaveworks/common/middleware"
1820
"github.com/weaveworks/common/user"
19-
20-
"github.com/cortexproject/cortex/pkg/querier/tripperware"
21-
"github.com/cortexproject/cortex/pkg/util/validation"
2221
)
2322

2423
var (

0 commit comments

Comments
 (0)