From a910984b58b1653394d84402bb61fb75a88e9bc7 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Thu, 21 May 2015 15:58:41 +0100 Subject: Actually return something from lambda --- synapse/storage/event_federation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'synapse/storage/event_federation.py') 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): -- cgit 1.4.1