Skip to content

Commit 845a7a7

Browse files
committed
remove un-used flags in querier handler
Signed-off-by: rubywtl <[email protected]>
1 parent 3c16e62 commit 845a7a7

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

pkg/api/handlers.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ func NewQuerierHandler(
167167
metadataQuerier querier.MetadataQuerier,
168168
reg prometheus.Registerer,
169169
logger log.Logger,
170-
distributedExecEnabled bool,
171170
) http.Handler {
172171
// Prometheus histograms for requests to the querier.
173172
querierRequestDuration := promauto.With(reg).NewHistogramVec(prometheus.HistogramOpts{

pkg/api/handlers_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ func TestBuildInfoAPI(t *testing.T) {
232232
version.Version = tc.version
233233
version.Branch = tc.branch
234234
version.Revision = tc.revision
235-
handler := NewQuerierHandler(cfg, nil, nil, nil, nil, nil, &FakeLogger{}, false)
235+
handler := NewQuerierHandler(cfg, nil, nil, nil, nil, nil, &FakeLogger{})
236236
writer := httptest.NewRecorder()
237237
req := httptest.NewRequest("GET", "/api/v1/status/buildinfo", nil)
238238
req = req.WithContext(user.InjectOrgID(req.Context(), "test"))

pkg/cortex/modules.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,6 @@ func (t *Cortex) initQuerier() (serv services.Service, err error) {
370370
t.MetadataQuerier,
371371
prometheus.DefaultRegisterer,
372372
util_log.Logger,
373-
t.Cfg.Querier.DistributedExecEnabled,
374373
)
375374

376375
// If the querier is running standalone without the query-frontend or query-scheduler, we must register it's internal

0 commit comments

Comments
 (0)