summary refs log tree commit diff
path: root/synapse/util/expiringcache.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-04-08 16:34:23 +0100
committerErik Johnston <erik@matrix.org>2015-04-08 16:34:23 +0100
commitccda401dbf6a9f55818dfd48a6cb9f7b8a2662fe (patch)
treefad99031e115a52292112bcb5a53343f59e092ef /synapse/util/expiringcache.py
parentMerge pull request #112 from matrix-org/hotfixes-v0.8.1-r2 (diff)
downloadsynapse-ccda401dbf6a9f55818dfd48a6cb9f7b8a2662fe.tar.xz
SYN-338: Fix typo that caused the cache to throw an exception in some instances
Diffstat (limited to 'synapse/util/expiringcache.py')
-rw-r--r--synapse/util/expiringcache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/util/expiringcache.py b/synapse/util/expiringcache.py
index 1c7859297a..06d1eea01b 100644
--- a/synapse/util/expiringcache.py
+++ b/synapse/util/expiringcache.py
@@ -65,7 +65,7 @@ class ExpiringCache(object):
         if self._max_len and len(self._cache.keys()) > self._max_len:
             sorted_entries = sorted(
                 self._cache.items(),
-                key=lambda k, v: v.time,
+                key=lambda (k, v): v.time,
             )
 
             for k, _ in sorted_entries[self._max_len:]: