Skip to content

Commit

Permalink
remove the unregister call
Browse files Browse the repository at this point in the history
  • Loading branch information
shyba committed Jun 4, 2021
1 parent 4e6b4f1 commit 4658f8b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lbry/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,12 +276,6 @@ def __delitem__(self, key):

def __del__(self):
self.clear()
if self._track_metrics: # needed for tests
try:
REGISTRY.unregister(self.hits)
REGISTRY.unregister(self.misses)
except AttributeError:
pass


class LRUCache:
Expand Down

0 comments on commit 4658f8b

Please sign in to comment.