summary refs log tree commit diff
path: root/synapse/util/caches/ttlcache.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-02-11 16:18:29 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2020-02-11 16:18:29 +0000
commit0295abdcf70548a7ba9d685598233f34c50127b5 (patch)
tree766e1facba2e4efefe8b058fb2e71bf7f2619a81 /synapse/util/caches/ttlcache.py
parentMerge pull request #5042 from matrix-org/erikj/fix_get_missing_events_error (diff)
downloadsynapse-0295abdcf70548a7ba9d685598233f34c50127b5.tar.xz
Dinsic Blacking with black==18.6b2
Diffstat (limited to 'synapse/util/caches/ttlcache.py')
-rw-r--r--synapse/util/caches/ttlcache.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/util/caches/ttlcache.py b/synapse/util/caches/ttlcache.py

index 5ba1862506..2af8ca43b1 100644 --- a/synapse/util/caches/ttlcache.py +++ b/synapse/util/caches/ttlcache.py
@@ -155,6 +155,7 @@ class TTLCache(object): @attr.s(frozen=True, slots=True) class _CacheEntry(object): """TTLCache entry""" + # expiry_time is the first attribute, so that entries are sorted by expiry. expiry_time = attr.ib() key = attr.ib()