Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuang-Minh Nguyen <qmnguyen@gitlab.com>2023-06-29 06:39:43 +0300
committerQuang-Minh Nguyen <qmnguyen@gitlab.com>2023-06-29 06:39:43 +0300
commit6585f1de3a73feb87d13618aa2e5d0d2109e4786 (patch)
treeff6f1e24e23b69a0e494b9632665db244d401dd3
parent5ed23b191c0cf22a382c2c23a78e492292616f5c (diff)
parentc945d61c33304979dfa40762d1f497726cf10928 (diff)
Merge branch 'renovate/github.com-hashicorp-golang-lru-v2-2.x' into 'master'
go: Update module github.com/hashicorp/golang-lru/v2 to v2.0.4 See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/5983 Merged-by: Quang-Minh Nguyen <qmnguyen@gitlab.com> Approved-by: John Cai <jcai@gitlab.com> Approved-by: Quang-Minh Nguyen <qmnguyen@gitlab.com> Co-authored-by: GitLab Renovate Bot <gitlab-bot@gitlab.com>
-rw-r--r--NOTICE3
-rw-r--r--go.mod2
-rw-r--r--go.sum4
3 files changed, 6 insertions, 3 deletions
diff --git a/NOTICE b/NOTICE
index 02c13e452..d08942acb 100644
--- a/NOTICE
+++ b/NOTICE
@@ -13132,6 +13132,9 @@ func (c *LRU[K, V]) Add(key K, value V) (evicted bool) {
// Check for existing item
if ent, ok := c.items[key]; ok {
c.evictList.moveToFront(ent)
+ if c.onEvict != nil {
+ c.onEvict(key, ent.value)
+ }
ent.value = value
return false
}
diff --git a/go.mod b/go.mod
index 80d41174a..9e5eb1b1e 100644
--- a/go.mod
+++ b/go.mod
@@ -20,7 +20,7 @@ require (
github.com/google/uuid v1.3.0
github.com/grpc-ecosystem/go-grpc-middleware v1.4.0
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0
- github.com/hashicorp/golang-lru/v2 v2.0.3
+ github.com/hashicorp/golang-lru/v2 v2.0.4
github.com/hashicorp/yamux v0.1.1
github.com/jackc/pgx/v5 v5.4.1
github.com/kelseyhightower/envconfig v1.4.0
diff --git a/go.sum b/go.sum
index 5cb36d873..ffa0a109a 100644
--- a/go.sum
+++ b/go.sum
@@ -1355,8 +1355,8 @@ github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ
github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4=
github.com/hashicorp/golang-lru v0.6.0/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4=
-github.com/hashicorp/golang-lru/v2 v2.0.3 h1:kmRrRLlInXvng0SmLxmQpQkpbYAvcXm7NPDrgxJa9mE=
-github.com/hashicorp/golang-lru/v2 v2.0.3/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM=
+github.com/hashicorp/golang-lru/v2 v2.0.4 h1:7GHuZcgid37q8o5i3QI9KMT4nCWQQ3Kx3Ov6bb9MfK0=
+github.com/hashicorp/golang-lru/v2 v2.0.4/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM=
github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64=
github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ=