mirror of
https://github.com/element-hq/synapse
synced 2024-08-20 13:10:20 +00:00
Don't update eviction metrics on explicit removal
This commit is contained in:
parent
9c8cec5dab
commit
8ea887856c
1 changed files with 0 additions and 5 deletions
|
@ -103,11 +103,6 @@ class ExpiringCache(object):
|
||||||
if value is SENTINEL:
|
if value is SENTINEL:
|
||||||
return default
|
return default
|
||||||
|
|
||||||
if self.iterable:
|
|
||||||
self.metrics.inc_evictions(len(value.value))
|
|
||||||
else:
|
|
||||||
self.metrics.inc_evictions()
|
|
||||||
|
|
||||||
return value
|
return value
|
||||||
|
|
||||||
def __contains__(self, key):
|
def __contains__(self, key):
|
||||||
|
|
Loading…
Reference in a new issue