Skip to content

Commit 4d9e7c7

Browse files
committed
fix import
Signed-off-by: Bogdan Stancu <stancu.bogdan.nicolae@gmail.com>
1 parent 9a1bb28 commit 4d9e7c7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

go.sum

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1590,7 +1590,7 @@ github.com/opencontainers/image-spec v1.1.0 h1:8SG7/vwALn54lVB/0yZ/MMwhFrPYtpEHQ
15901590
github.com/opencontainers/image-spec v1.1.0/go.mod h1:W4s4sFTMaBeK1BQLXbG4AdM2szdn85PY75RI83NrTrM=
15911591
github.com/opentracing-contrib/go-grpc v0.1.2 h1:MP16Ozc59kqqwn1v18aQxpeGZhsBanJ2iurZYaQSZ+g=
15921592
github.com/opentracing-contrib/go-grpc v0.1.2/go.mod h1:glU6rl1Fhfp9aXUHkE36K2mR4ht8vih0ekOVlWKEUHM=
1593-
github.com/opentracing-contrib/go-stdlib v1.1.0 h1:cZBWc4pA4e65tqTJddbflK435S0tDImj6c9BMvkdUH0=
1593+
github.com/opentracing-contrib/go-stdlib v1.1.0 h1:hSJ8yYaiAO/k2YZUeWJWpQCPE2wRCDtxRnir0gU6wbA=
15941594
github.com/opentracing-contrib/go-stdlib v1.1.0/go.mod h1:S0p+X9p6dcBkoMTL+Qq2VOvxKs9ys5PpYWXWqlCS0bQ=
15951595
github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o=
15961596
github.com/opentracing/opentracing-go v1.2.0 h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+1B0VhjKrZUs=

pkg/overrides/api.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import (
1111
"github.com/go-kit/log/level"
1212
"gopkg.in/yaml.v3"
1313

14-
"github.com/cortexproject/cortex/pkg/tenant"
1514
"github.com/cortexproject/cortex/pkg/util/runtimeconfig"
15+
"github.com/cortexproject/cortex/pkg/util/users"
1616
"github.com/cortexproject/cortex/pkg/util/validation"
1717
)
1818

@@ -44,7 +44,7 @@ func (a *API) getAllowedLimitsFromBucket(ctx context.Context) ([]string, error)
4444

4545
// GetOverrides retrieves overrides for a specific tenant
4646
func (a *API) GetOverrides(w http.ResponseWriter, r *http.Request) {
47-
userID, _, err := tenant.ExtractTenantIDFromHTTPRequest(r)
47+
userID, _, err := users.ExtractTenantIDFromHTTPRequest(r)
4848
if err != nil {
4949
http.Error(w, err.Error(), http.StatusUnauthorized)
5050
return
@@ -72,7 +72,7 @@ func (a *API) GetOverrides(w http.ResponseWriter, r *http.Request) {
7272

7373
// SetOverrides updates overrides for a specific tenant
7474
func (a *API) SetOverrides(w http.ResponseWriter, r *http.Request) {
75-
userID, _, err := tenant.ExtractTenantIDFromHTTPRequest(r)
75+
userID, _, err := users.ExtractTenantIDFromHTTPRequest(r)
7676
if err != nil {
7777
http.Error(w, err.Error(), http.StatusUnauthorized)
7878
return
@@ -118,7 +118,7 @@ func (a *API) SetOverrides(w http.ResponseWriter, r *http.Request) {
118118

119119
// DeleteOverrides removes tenant-specific overrides
120120
func (a *API) DeleteOverrides(w http.ResponseWriter, r *http.Request) {
121-
userID, _, err := tenant.ExtractTenantIDFromHTTPRequest(r)
121+
userID, _, err := users.ExtractTenantIDFromHTTPRequest(r)
122122
if err != nil {
123123
http.Error(w, err.Error(), http.StatusUnauthorized)
124124
return

0 commit comments

Comments
 (0)