0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-14 05:52:37 +01:00

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 max_room_stream_id(int): The highest stream_id below which all
events have been persisted. events have been persisted.
""" """
pending = sorted(self.pending_new_room_events) pending = self.pending_new_room_events
self.pending_new_room_events = [] self.pending_new_room_events = []
for room_stream_id, event, extra_users in pending: for room_stream_id, event, extra_users in pending:
if room_stream_id > max_room_stream_id: if room_stream_id > max_room_stream_id: