diff options
author | Erik Johnston <erik@matrix.org> | 2017-01-17 11:42:26 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-01-17 11:42:26 +0000 |
commit | 1ccd5676e3fe01bcc1c59fd06f400f629b24c3ba (patch) | |
tree | 195352aa1ee984d0938c876ebd84227a0bdaa1d9 /synapse/util/caches/lrucache.py | |
parent | Increase state_group_cache_size (diff) | |
download | synapse-1ccd5676e3fe01bcc1c59fd06f400f629b24c3ba.tar.xz |
Remove needless call to evict()
Diffstat (limited to '')
-rw-r--r-- | synapse/util/caches/lrucache.py | 1 |
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) |