Skip to content

Commit

Permalink
Update lru.go
Browse files Browse the repository at this point in the history
  • Loading branch information
paulnpdev committed Sep 2, 2021
1 parent 24a081a commit 24abf94
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions common/cache/lru.go
Expand Up @@ -221,6 +221,9 @@ func (c *lru) Delete(key interface{}) {

// Release decrements the ref count of a pinned element.
func (c *lru) Release(key interface{}) {
if !c.pin {
return
}
c.mut.Lock()
defer c.mut.Unlock()

Expand Down

0 comments on commit 24abf94

Please sign in to comment.