1
0

Add assertion message to better debug

This commit is contained in:
Eric Eastwood
2024-09-10 13:41:49 -05:00
parent bb5784b268
commit 6f3e8be1dc

View File

@@ -2247,6 +2247,10 @@ class EventsBackgroundUpdatesStore(StreamWorkerStore, StateDeltasStore, SQLBaseS
assert (
last_to_insert_join_membership_info.membership_event_stream_ordering
<= membership_event_stream_ordering
), (
f"Expected to be iterating in ascending order as we process membership snapshots for room {room_id}"
+ " but our last join membership was at {last_to_insert_join_membership_info.membership_event_stream_ordering}"
+ "and our current membership is at {membership_event_stream_ordering}"
)
# Check if the current state has been updated since the last snapshot we inserted.