From c5e187c389b35b9e080a3187b93a775a3c81e585 Mon Sep 17 00:00:00 2001 From: harryzcy Date: Thu, 13 Jul 2023 22:00:31 -0500 Subject: Upgrade go dependencies (#25819) --- modules/regexplru/regexplru.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/regexplru') diff --git a/modules/regexplru/regexplru.go b/modules/regexplru/regexplru.go index dd3c5df82d..8f66dcf3f7 100644 --- a/modules/regexplru/regexplru.go +++ b/modules/regexplru/regexplru.go @@ -8,14 +8,14 @@ import ( "code.gitea.io/gitea/modules/log" - lru "github.com/hashicorp/golang-lru" + lru "github.com/hashicorp/golang-lru/v2" ) -var lruCache *lru.Cache +var lruCache *lru.Cache[string, any] func init() { var err error - lruCache, err = lru.New(1000) + lruCache, err = lru.New[string, any](1000) if err != nil { log.Fatal("failed to new LRU cache, err: %v", err) } -- cgit v1.2.3