mirror of
https://github.com/element-hq/synapse.git
synced 2026-08-28 20:08:16 +00:00
Update synapse/storage/controllers/persist_events.py
Co-authored-by: Eric Eastwood <erice@element.io>
This commit is contained in:
co-authored by
Eric Eastwood
parent
2f8fece6f0
commit
bc91229685
@@ -1034,6 +1034,7 @@ class EventsPersistenceStorageController:
|
||||
**{SERVER_NAME_LABEL: self.server_name}
|
||||
).observe(len(result))
|
||||
|
||||
# There should always be at least one forward extremity.
|
||||
assert result, f"No state dag forward extremities left in room {room_id}!"
|
||||
return result
|
||||
|
||||
|
||||
Reference in New Issue
Block a user