summaryrefslogtreecommitdiffstats
path: root/evict.go
diff options
context:
space:
mode:
authorMarc Pervaz Boocha <marcpervaz@qburst.com>2025-05-15 17:56:07 +0530
committerMarc Pervaz Boocha <marcpervaz@qburst.com>2025-05-15 17:56:07 +0530
commit7d532553ae18bfff1bec9e0df3fa66313073e3dd (patch)
tree796a7fe86da764f51648b1337011baeaaf53421b /evict.go
parentLint and bug fixes (diff)
downloadcache-7d532553ae18bfff1bec9e0df3fa66313073e3dd.tar
cache-7d532553ae18bfff1bec9e0df3fa66313073e3dd.tar.gz
cache-7d532553ae18bfff1bec9e0df3fa66313073e3dd.tar.bz2
cache-7d532553ae18bfff1bec9e0df3fa66313073e3dd.tar.lz
cache-7d532553ae18bfff1bec9e0df3fa66313073e3dd.tar.xz
cache-7d532553ae18bfff1bec9e0df3fa66313073e3dd.tar.zst
cache-7d532553ae18bfff1bec9e0df3fa66313073e3dd.zip
Add raw API
Diffstat (limited to '')
-rw-r--r--evict.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/evict.go b/evict.go
index eff626c..e355a11 100644
--- a/evict.go
+++ b/evict.go
@@ -34,7 +34,7 @@ type evictionPolicy struct {
}
// pushEvict adds a node to the eviction list.
-func pushEvict(node *node, sentinnel *node) {
+func pushEvict(node, sentinnel *node) {
node.EvictPrev = sentinnel
node.EvictNext = node.EvictPrev.EvictNext
node.EvictNext.EvictPrev = node