Skip to content

Commit

Permalink
bump ruma for async state-res optimizations
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Volk <[email protected]>
  • Loading branch information
jevolk committed Dec 4, 2024
1 parent 9db0325 commit 513236b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 18 deletions.
30 changes: 14 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ version = "0.1.2"
[workspace.dependencies.ruma]
git = "https://github.com/girlbossceo/ruwuma"
#branch = "conduwuit-changes"
rev = "97e2fb6df13f65532d33fc2f0f097ad5a449dd70"
rev = "1a550585bf025cce48ef8b734339245092bc986e"
features = [
"compat",
"rand",
Expand Down
2 changes: 1 addition & 1 deletion src/service/rooms/event_handler/resolve_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ pub async fn resolve_state(
.collect()
})
.collect()
.boxed()
.await;

debug!("Resolving state");
Expand All @@ -74,6 +73,7 @@ pub async fn resolve_state(
let event_fetch = |event_id| self.event_fetch(event_id);
let event_exists = |event_id| self.event_exists(event_id);
let state = state_res::resolve(room_version_id, &fork_states, &auth_chain_sets, &event_fetch, &event_exists)
.boxed()
.await
.map_err(|e| err!(Database(error!("State resolution failed: {e:?}"))))?;

Expand Down
1 change: 1 addition & 0 deletions src/service/rooms/event_handler/state_at_incoming.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ pub(super) async fn state_at_incoming_resolved(
let event_fetch = |event_id| self.event_fetch(event_id);
let event_exists = |event_id| self.event_exists(event_id);
let result = state_res::resolve(room_version_id, &fork_states, &auth_chain_sets, &event_fetch, &event_exists)
.boxed()
.await
.map_err(|e| err!(Database(warn!(?e, "State resolution on prev events failed."))));

Expand Down

0 comments on commit 513236b

Please sign in to comment.