feat: Add !admin debug rooms-by-extremity-count command

This commit is contained in:
timedout committed 2026-06-20 17:08:00 +01:00
1 parent ab3be337cb
commit bcadecdc3b
3 files changed
+66 -1

No files matched your search

+10
View File
@@ -371,6 +371,16 @@ impl Service {
.deserialized()
}
pub fn all_forward_extremities(
&self,
) -> impl Stream<Item = (OwnedRoomId, OwnedEventId)> + Send {
self.db
.roomid_pduleaves
.keys()
.map_ok(|(room_id, event_id): (OwnedRoomId, OwnedEventId)| (room_id, event_id))
.ignore_err()
}
pub fn get_forward_extremities<'a>(
&'a self,
room_id: &'a RoomId,