summary refs log tree commit diff
path: root/synapse/util
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-01-17 11:42:26 +0000
committerErik Johnston <erik@matrix.org>2017-01-17 11:42:26 +0000
commit1ccd5676e3fe01bcc1c59fd06f400f629b24c3ba (patch)
tree195352aa1ee984d0938c876ebd84227a0bdaa1d9 /synapse/util
parentIncrease state_group_cache_size (diff)
downloadsynapse-1ccd5676e3fe01bcc1c59fd06f400f629b24c3ba.tar.xz
Remove needless call to evict()
Diffstat (limited to 'synapse/util')
-rw-r--r--synapse/util/caches/lrucache.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/synapse/util/caches/lrucache.py b/synapse/util/caches/lrucache.py
index f1de034444..072f9a9d19 100644
--- a/synapse/util/caches/lrucache.py
+++ b/synapse/util/caches/lrucache.py
@@ -154,7 +154,6 @@ class LruCache(object):
         def cache_set_default(key, value):
             node = cache.get(key, None)
             if node is not None:
-                evict()  # As the new node may be bigger than the old node.
                 return node.value
             else:
                 add_node(key, value)