From 1ccd5676e3fe01bcc1c59fd06f400f629b24c3ba Mon Sep 17 00:00:00 2001
From: Erik Johnston <erik@matrix.org>
Date: Tue, 17 Jan 2017 11:42:26 +0000
Subject: [PATCH] Remove needless call to evict()

---
 synapse/util/caches/lrucache.py | 1 -
 1 file changed, 1 deletion(-)

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)
-- 
GitLab