diff --git a/server/util/quota/BUILD b/server/util/quota/BUILD index 56cc15060f9..393b5d0ee92 100644 --- a/server/util/quota/BUILD +++ b/server/util/quota/BUILD @@ -7,7 +7,6 @@ go_library( visibility = ["//visibility:public"], deps = [ "//server/environment", - "//server/interfaces", "//server/util/status", "@org_golang_google_grpc//metadata", ], diff --git a/server/util/quota/quota.go b/server/util/quota/quota.go index ff3019e1c9d..7d0a753ff04 100644 --- a/server/util/quota/quota.go +++ b/server/util/quota/quota.go @@ -5,7 +5,6 @@ import ( "strings" "github.com/buildbuddy-io/buildbuddy/server/environment" - "github.com/buildbuddy-io/buildbuddy/server/interfaces" "github.com/buildbuddy-io/buildbuddy/server/util/status" "google.golang.org/grpc/metadata" ) @@ -14,7 +13,7 @@ func getGroupID(ctx context.Context, env environment.Env) string { if a := env.GetAuthenticator(); a != nil { user, err := a.AuthenticatedUser(ctx) if err != nil { - return interfaces.AuthAnonymousUser + return "" } return user.GetGroupID() }