Skip to content

Commit 0aaed67

Browse files
committed
Update lru package
1 parent 44fc05c commit 0aaed67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/lru/lru.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ func (l *Lru[K, V]) Del(k K) {
111111
l.M.Lock()
112112
defer l.M.Unlock()
113113
if e, ok := l.C[k]; ok {
114-
l.List.Remove(e)
115114
delete(l.C, k)
115+
l.List.Remove(e)
116116
}
117117
}
118118

0 commit comments

Comments
 (0)