Don't bother sorting by the room_stream_ids, it shouldn't matter which order they are notified in

This commit is contained in:
Mark Haines 2015-05-18 14:04:58 +01:00
parent 0b0033c40b
commit ad31fa3040

View File

@ -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: