Fetch prev_events concurrently.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2025-08-02 09:32:21 +00:00
parent 003257693b
commit a0dc37e024
2 changed files with 74 additions and 64 deletions

View File

@@ -35,7 +35,7 @@ pub(super) async fn fetch_auth<'a, Events>(
room_version: &RoomVersionId,
) -> Vec<(PduEvent, Option<CanonicalJsonObject>)>
where
Events: Iterator<Item = &'a EventId> + Clone + Send,
Events: Iterator<Item = &'a EventId> + Send,
{
let events_with_auth_events: Vec<_> = events
.stream()