summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-05-21 15:58:41 +0100
committerErik Johnston <erik@matrix.org>2015-05-21 15:58:41 +0100
commita910984b58b1653394d84402bb61fb75a88e9bc7 (patch)
tree990138de18a2e2e216ab1a667ea69aa956e24681 /synapse
parentSort backfill events (diff)
downloadsynapse-a910984b58b1653394d84402bb61fb75a88e9bc7.tar.xz
Actually return something from lambda
Diffstat (limited to 'synapse')
-rw-r--r--synapse/storage/event_federation.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/event_federation.py b/synapse/storage/event_federation.py
index 5fd126cdb9..4655c8e548 100644
--- a/synapse/storage/event_federation.py
+++ b/synapse/storage/event_federation.py
@@ -367,7 +367,7 @@ class EventFederationStore(SQLBaseStore):
         ).addCallback(
             self._get_events
         ).addCallback(
-            lambda l: l.sort(key=lambda e: -e.depth)
+            lambda l: sorted(l, key=lambda e: -e.depth)
         )
 
     def _get_backfill_events(self, txn, room_id, event_list, limit):