From fb438dc108a59f61197bf12b49c21fa4e285b690 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Fri, 4 Jun 2021 12:34:00 -0300 Subject: [PATCH] remove the unregister call --- lbry/utils.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lbry/utils.py b/lbry/utils.py index c944ed29b..ee998da41 100644 --- a/lbry/utils.py +++ b/lbry/utils.py @@ -21,7 +21,6 @@ import pkg_resources import certifi import aiohttp from prometheus_client import Counter -from prometheus_client.registry import REGISTRY from lbry.schema.claim import Claim @@ -276,12 +275,6 @@ class LRUCacheWithMetrics: 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: