summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-05-18 14:04:58 +0100
committerMark Haines <mark.haines@matrix.org>2015-05-18 14:04:58 +0100
commitad31fa304022e593b6c9354d3a42df761597e69b (patch)
treeb0f18575dbc0440fb6837e53c4e6efd25d42a71f /synapse
parentMerge branch 'develop' into notifier_performance (diff)
downloadsynapse-ad31fa304022e593b6c9354d3a42df761597e69b.tar.xz
Don't bother sorting by the room_stream_ids, it shouldn't matter which order they are notified in
Diffstat (limited to '')
-rw-r--r--synapse/notifier.py2
1 files changed, 1 insertions, 1 deletions
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: