Skip to content

Commit

Permalink
fix onEvictedCB bug (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
yigongliu-concur committed Oct 11, 2022
1 parent 003b81b commit d4900dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lru.go
Expand Up @@ -167,7 +167,7 @@ func (c *Cache) Remove(key interface{}) (present bool) {
}
c.lock.Unlock()
if c.onEvictedCB != nil && present {
c.onEvicted(k, v)
c.onEvictedCB(k, v)
}
return
}
Expand Down

0 comments on commit d4900dc

Please sign in to comment.