Skip to main content

tuwunel_admin/debug/
state_at_incoming.rs

1use ruma::OwnedEventId;
2use tuwunel_core::Result;
3
4use crate::admin_command;
5
6#[admin_command]
7pub(super) async fn state_at_incoming(&self, event_id: OwnedEventId) -> Result {
8	let report = self
9		.services
10		.event_handler
11		.local_state_report(&event_id)
12		.await?;
13
14	let out = format!("```\n{report:#?}\n```");
15
16	self.write_str(&out).await
17}