Merge pull request #119 from matrix-org/hotfixes-v0.8.1-r3

Hotfixes v0.8.1 r3
pull/4/merge
Erik Johnston 10 years ago
commit 0575840866
  1. 2
      synapse/__init__.py
  2. 2
      synapse/util/expiringcache.py

@ -16,4 +16,4 @@
""" This is a reference implementation of a Matrix home server. """ This is a reference implementation of a Matrix home server.
""" """
__version__ = "0.8.1-r2" __version__ = "0.8.1-r3"

@ -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…
Cancel
Save