diff options
author | Mark Haines <mark.haines@matrix.org> | 2015-05-18 14:04:58 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2015-05-18 14:04:58 +0100 |
commit | ad31fa304022e593b6c9354d3a42df761597e69b (patch) | |
tree | b0f18575dbc0440fb6837e53c4e6efd25d42a71f /synapse | |
parent | Merge branch 'develop' into notifier_performance (diff) | |
download | synapse-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 'synapse')
-rw-r--r-- | synapse/notifier.py | 2 |
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: |