Skip to content

Commit

Permalink
chore: reset heap on purge
Browse files Browse the repository at this point in the history
  • Loading branch information
shaj13 committed Jun 27, 2022
1 parent 250268a commit 9f441f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ func (c *Cache) Purge() {

if len(c.events[Remove]) == 0 {
c.entries = make(map[interface{}]*Entry)
c.heap = nil
return
}

Expand Down

0 comments on commit 9f441f7

Please sign in to comment.