Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Jung <[email protected]>
  • Loading branch information
justinjung04 committed Oct 17, 2023
1 parent 916fda4 commit 28977ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/frontend/v1/frontend.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/cortexproject/cortex/pkg/tenant"
"github.com/cortexproject/cortex/pkg/util"
"github.com/cortexproject/cortex/pkg/util/httpgrpcutil"
"github.com/cortexproject/cortex/pkg/util/query"
util_query "github.com/cortexproject/cortex/pkg/util/query"
"github.com/cortexproject/cortex/pkg/util/services"
"github.com/cortexproject/cortex/pkg/util/validation"
)
Expand Down Expand Up @@ -347,7 +347,7 @@ func (f *Frontend) queueRequest(ctx context.Context, req *request) error {
now := time.Now()
req.enqueueTime = now
req.queueSpan, _ = opentracing.StartSpanFromContext(ctx, "queued")
req.isHighPriority = query.IsHighPriority()
req.isHighPriority = util_query.IsHighPriority()

// aggregate the max queriers limit in the case of a multi tenant query
maxQueriers := validation.SmallestPositiveNonZeroFloat64PerTenant(tenantIDs, f.limits.MaxQueriersPerUser)
Expand Down
4 changes: 2 additions & 2 deletions pkg/frontend/v2/frontend.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"github.com/cortexproject/cortex/pkg/util/grpcclient"
"github.com/cortexproject/cortex/pkg/util/httpgrpcutil"
util_log "github.com/cortexproject/cortex/pkg/util/log"
"github.com/cortexproject/cortex/pkg/util/query"
util_query "github.com/cortexproject/cortex/pkg/util/query"
"github.com/cortexproject/cortex/pkg/util/services"
)

Expand Down Expand Up @@ -196,7 +196,7 @@ func (f *Frontend) RoundTripGRPC(ctx context.Context, req *httpgrpc.HTTPRequest)
request: req,
userID: userID,
statsEnabled: stats.IsEnabled(ctx),
isHighPriority: query.IsHighPriority(),
isHighPriority: util_query.IsHighPriority(),

cancel: cancel,

Expand Down

0 comments on commit 28977ea

Please sign in to comment.