mirror of
https://github.com/matrix-org/synapse.git
synced 2025-12-12 12:51:12 +01:00
SYN-338: Fix typo that caused the cache to throw an exception in some instances
This commit is contained in:
parent
532ebc4a82
commit
ccda401dbf
@ -65,7 +65,7 @@ class ExpiringCache(object):
|
|||||||
if self._max_len and len(self._cache.keys()) > self._max_len:
|
if self._max_len and len(self._cache.keys()) > self._max_len:
|
||||||
sorted_entries = sorted(
|
sorted_entries = sorted(
|
||||||
self._cache.items(),
|
self._cache.items(),
|
||||||
key=lambda k, v: v.time,
|
key=lambda (k, v): v.time,
|
||||||
)
|
)
|
||||||
|
|
||||||
for k, _ in sorted_entries[self._max_len:]:
|
for k, _ in sorted_entries[self._max_len:]:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user