some optimizations to get_auth_chain()

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-04-10 13:55:09 -07:00 committed by June
parent 678d87ced1
commit dba0575e75
4 changed files with 71 additions and 46 deletions

View file

@ -104,7 +104,7 @@ pub(crate) async fn process(command: DebugCommand, body: Vec<&str>) -> Result<Ro
let count = services()
.rooms
.auth_chain
.get_auth_chain(room_id, vec![event_id])
.event_ids_iter(room_id, vec![event_id])
.await?
.count();
let elapsed = start.elapsed();