summaryrefslogtreecommitdiffstats
path: root/modules/regexplru
diff options
context:
space:
mode:
authorharryzcy <harry@harryzheng.com>2023-07-13 22:00:31 -0500
committerGitHub <noreply@github.com>2023-07-14 11:00:31 +0800
commitc5e187c389b35b9e080a3187b93a775a3c81e585 (patch)
tree7c65ee5aaf56b6f53a96742286d98119dba5b13b /modules/regexplru
parentb81c01305714ceca818ccb91d19dada6469e658c (diff)
downloadgitea-c5e187c389b35b9e080a3187b93a775a3c81e585.tar.gz
gitea-c5e187c389b35b9e080a3187b93a775a3c81e585.zip
Upgrade go dependencies (#25819)
Diffstat (limited to 'modules/regexplru')
-rw-r--r--modules/regexplru/regexplru.go6
1 files changed, 3 insertions, 3 deletions
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)
}