From ad31fa304022e593b6c9354d3a42df761597e69b Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Mon, 18 May 2015 14:04:58 +0100 Subject: Don't bother sorting by the room_stream_ids, it shouldn't matter which order they are notified in --- synapse/notifier.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'synapse') diff --git a/synapse/notifier.py b/synapse/notifier.py index 0b5d97521e..1e73d52c4d 100644 --- a/synapse/notifier.py +++ b/synapse/notifier.py @@ -203,7 +203,7 @@ class Notifier(object): max_room_stream_id(int): The highest stream_id below which all events have been persisted. """ - pending = sorted(self.pending_new_room_events) + pending = self.pending_new_room_events self.pending_new_room_events = [] for room_stream_id, event, extra_users in pending: if room_stream_id > max_room_stream_id: -- cgit 1.4.1