remove the unregister call
This commit is contained in:
parent
4e6b4f179b
commit
fb438dc108
1 changed files with 0 additions and 7 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue