diff options
author | Erik Johnston <erik@matrix.org> | 2018-10-01 11:59:52 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2018-10-01 12:00:58 +0100 |
commit | 8ea887856c1bcb97c90d88fe20f7f82ed7f48967 (patch) | |
tree | ded415f374fc5e45fff66adba0cfc5b7c20cc088 /synapse/util/caches/expiringcache.py | |
parent | Merge remote-tracking branch 'origin/develop' into erikj/destination_retry_cache (diff) | |
download | synapse-8ea887856c1bcb97c90d88fe20f7f82ed7f48967.tar.xz |
Don't update eviction metrics on explicit removal
Diffstat (limited to '')
-rw-r--r-- | synapse/util/caches/expiringcache.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/synapse/util/caches/expiringcache.py b/synapse/util/caches/expiringcache.py index 8ac56d85ff..f2f55ba6c9 100644 --- a/synapse/util/caches/expiringcache.py +++ b/synapse/util/caches/expiringcache.py @@ -103,11 +103,6 @@ class ExpiringCache(object): if value is SENTINEL: return default - if self.iterable: - self.metrics.inc_evictions(len(value.value)) - else: - self.metrics.inc_evictions() - return value def __contains__(self, key): |