mirror of
https://github.com/element-hq/synapse
synced 2024-08-20 00:20:25 +00:00
Remove needless call to evict()
This commit is contained in:
parent
d906206049
commit
1ccd5676e3
1 changed files with 0 additions and 1 deletions
|
@ -154,7 +154,6 @@ class LruCache(object):
|
||||||
def cache_set_default(key, value):
|
def cache_set_default(key, value):
|
||||||
node = cache.get(key, None)
|
node = cache.get(key, None)
|
||||||
if node is not None:
|
if node is not None:
|
||||||
evict() # As the new node may be bigger than the old node.
|
|
||||||
return node.value
|
return node.value
|
||||||
else:
|
else:
|
||||||
add_node(key, value)
|
add_node(key, value)
|
||||||
|
|
Loading…
Reference in a new issue