mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Remove needless call to evict()
This commit is contained in:
parent
d906206049
commit
1ccd5676e3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user