From 8446f6267a0c91a323a63d340bccd226b9e2b523 Mon Sep 17 00:00:00 2001 From: Jan Eitzinger Date: Wed, 22 Jun 2022 06:11:00 +0200 Subject: [PATCH] Use internal lrucache --- go.mod | 1 - internal/config/config.go | 2 +- internal/metricdata/metricdata.go | 2 +- internal/repository/job.go | 2 +- pkg/lrucache/go.mod | 3 --- 5 files changed, 3 insertions(+), 7 deletions(-) delete mode 100644 pkg/lrucache/go.mod diff --git a/go.mod b/go.mod index c149ea3..6e963db 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,6 @@ require ( github.com/gorilla/handlers v1.5.1 github.com/gorilla/mux v1.8.0 github.com/gorilla/sessions v1.2.1 - github.com/iamlouk/lrucache v0.2.1 github.com/influxdata/influxdb-client-go/v2 v2.8.1 github.com/jmoiron/sqlx v1.3.4 github.com/mattn/go-sqlite3 v1.14.12 diff --git a/internal/config/config.go b/internal/config/config.go index cfb1ca8..19d2ec6 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -13,8 +13,8 @@ import ( "github.com/ClusterCockpit/cc-backend/internal/auth" "github.com/ClusterCockpit/cc-backend/internal/graph/model" + "github.com/ClusterCockpit/cc-backend/pkg/lrucache" "github.com/ClusterCockpit/cc-backend/pkg/schema" - "github.com/iamlouk/lrucache" "github.com/jmoiron/sqlx" ) diff --git a/internal/metricdata/metricdata.go b/internal/metricdata/metricdata.go index 019ddf5..d23015f 100644 --- a/internal/metricdata/metricdata.go +++ b/internal/metricdata/metricdata.go @@ -8,8 +8,8 @@ import ( "github.com/ClusterCockpit/cc-backend/internal/config" "github.com/ClusterCockpit/cc-backend/pkg/log" + "github.com/ClusterCockpit/cc-backend/pkg/lrucache" "github.com/ClusterCockpit/cc-backend/pkg/schema" - "github.com/iamlouk/lrucache" ) type MetricDataRepository interface { diff --git a/internal/repository/job.go b/internal/repository/job.go index dd34f51..fd75e37 100644 --- a/internal/repository/job.go +++ b/internal/repository/job.go @@ -13,9 +13,9 @@ import ( "github.com/ClusterCockpit/cc-backend/internal/auth" "github.com/ClusterCockpit/cc-backend/internal/graph/model" "github.com/ClusterCockpit/cc-backend/pkg/log" + "github.com/ClusterCockpit/cc-backend/pkg/lrucache" "github.com/ClusterCockpit/cc-backend/pkg/schema" sq "github.com/Masterminds/squirrel" - "github.com/iamlouk/lrucache" "github.com/jmoiron/sqlx" ) diff --git a/pkg/lrucache/go.mod b/pkg/lrucache/go.mod deleted file mode 100644 index b5574a7..0000000 --- a/pkg/lrucache/go.mod +++ /dev/null @@ -1,3 +0,0 @@ -module github.com/iamlouk/lrucache - -go 1.16