Skip to main content

tuwunel_admin/debug/event_fetcher/
state_ids.rs

1use ruma::{OwnedEventId, OwnedRoomId, OwnedServerName};
2use tuwunel_core::Result;
3use tuwunel_service::fetcher::Op;
4
5use super::{base_opts, run};
6use crate::admin_command;
7
8#[admin_command]
9pub(super) async fn event_fetcher_state_ids(
10	&self,
11	room_id: OwnedRoomId,
12	event_id: OwnedEventId,
13	server: Option<OwnedServerName>,
14	attempt_limit: Option<usize>,
15	verify: bool,
16) -> Result {
17	let opts = base_opts(Op::StateIds, room_id, event_id, server, attempt_limit, verify);
18	run(self, opts).await
19}