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
path: root/NOTICE
diff options
context:
space:
mode:
authorGitLab Renovate Bot <gitlab-bot@gitlab.com>2023-06-28 18:22:53 +0300
committerGitLab Renovate Bot <gitlab-bot@gitlab.com>2023-06-28 18:22:53 +0300
commitc945d61c33304979dfa40762d1f497726cf10928 (patch)
tree590c4f01e5eb0967c1b57deb5446fa53f6863ce1 /NOTICE
parent13c9342533169e26f40af638e76d9d5b1782bcd8 (diff)
go: Update module github.com/hashicorp/golang-lru/v2 to v2.0.4
Diffstat (limited to 'NOTICE')
-rw-r--r--NOTICE3
1 files changed, 3 insertions, 0 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
}