minor auth_chain optimizations/cleanup

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk authored and strawberry committed 2024-10-25 00:32:33 -04:00
1 parent 4776fe66c4
commit 3f7ec4221d
8 files changed
+125 -118

No files matched your search

+2 -2
View File
@@ -1,4 +1,4 @@
use std::sync::Arc;
use std::borrow::Borrow;
use axum::extract::State;
use conduit::{err, Err};
@@ -55,7 +55,7 @@ pub(crate) async fn get_room_state_ids_route(
let auth_chain_ids = services
.rooms
.auth_chain
.event_ids_iter(&body.room_id, vec![Arc::from(&*body.event_id)])
.event_ids_iter(&body.room_id, &[body.event_id.borrow()])
.await?
.map(|id| (*id).to_owned())
.collect()