summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-10-01 11:59:52 +0100
committerErik Johnston <erik@matrix.org>2018-10-01 12:00:58 +0100
commit8ea887856c1bcb97c90d88fe20f7f82ed7f48967 (patch)
treeded415f374fc5e45fff66adba0cfc5b7c20cc088
parentMerge remote-tracking branch 'origin/develop' into erikj/destination_retry_cache (diff)
downloadsynapse-8ea887856c1bcb97c90d88fe20f7f82ed7f48967.tar.xz
Don't update eviction metrics on explicit removal
-rw-r--r--synapse/util/caches/expiringcache.py5
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):