diff --git a/go.mod b/go.mod index abf54ae0..45c26730 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,6 @@ require ( github.com/authzed/grpcutil v0.0.0-20240123194739-2ea1e3d2d98b github.com/cockroachdb/cockroach-go/v2 v2.3.7 github.com/go-jose/go-jose/v4 v4.0.1 - github.com/hashicorp/golang-lru/v2 v2.0.7 github.com/jackc/pgx/v5 v5.5.5 github.com/labstack/echo/v4 v4.11.4 github.com/pkg/errors v0.9.1 diff --git a/go.sum b/go.sum index 29c8f71a..e6ca63f6 100644 --- a/go.sum +++ b/go.sum @@ -126,6 +126,7 @@ github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 h1:UH//fgunKIs4JdUbpDl1VZCDa github.com/grpc-ecosystem/go-grpc-middleware v1.4.0/go.mod h1:g5qyo/la0ALbONm6Vbp88Yd8NsDy6rZz+RcrMPxvld8= github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 h1:/c3QmbOGMGTOumP2iT/rCwB7b0QDGLKzqOmktBjT+Is= github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1/go.mod h1:5SN9VR2LTsRFsrEC6FHgRbTWrTHu6tqPeKxEQv15giM= +github.com/hashicorp/golang-lru v0.5.4 h1:YDjusn29QI/Das2iO9M0BHnIbxPeyuCHsjMW+lJfyTc= github.com/hashicorp/golang-lru/v2 v2.0.7 h1:a+bsQ5rvGLjzHuww6tVxozPZFVghXaHOwFs4luLUK2k= github.com/hashicorp/golang-lru/v2 v2.0.7/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM= github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= diff --git a/internal/query/service.go b/internal/query/service.go index eec78469..af600f98 100644 --- a/internal/query/service.go +++ b/internal/query/service.go @@ -4,7 +4,6 @@ import ( "context" "github.com/authzed/authzed-go/v1" - "github.com/hashicorp/golang-lru/v2/expirable" "go.infratographer.com/x/gidx" "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/trace" @@ -83,7 +82,6 @@ type engine struct { logger *zap.SugaredLogger namespace string client *authzed.Client - zedTokenCache *expirable.LRU[string, string] store storage.Storage schema []types.ResourceType schemaPrefixMap map[string]types.ResourceType