Optimize Pdu prev_events and auth_events containers.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2025-09-23 18:12:06 +00:00
parent 887a22dabd
commit aa37e32471
11 changed files with 62 additions and 50 deletions

View File

@@ -1,5 +1,6 @@
use std::{ops::Range, time::Duration};
use futures::FutureExt;
use ruma::{
CanonicalJsonObject, EventId, MilliSecondsSinceUnixEpoch, RoomId, RoomVersionId, ServerName,
};
@@ -62,6 +63,7 @@ pub(super) async fn handle_prev_pdu(
room_version,
create_event_id,
)
.boxed()
.await?;
Ok(())

View File

@@ -212,13 +212,11 @@ pub(super) async fn upgrade_outlier_to_timeline_pdu(
.services
.state_compressor
.save_state(room_id, new_room_state)
.boxed()
.await?;
self.services
.state
.force_state(room_id, shortstatehash, added, removed, &state_lock)
.boxed()
.await?;
}