add option to recompute room state

Hopefully we can make use of this state resolution code for more stuff
in the future.
This commit is contained in:
Charles Hall 2024-11-02 18:26:00 -07:00
parent 33598a79b7
commit b1e14fad5c
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
5 changed files with 629 additions and 1 deletions

View file

@ -99,6 +99,14 @@ pub(crate) struct GetRoomStatesArgs {
#[clap(flatten)]
pub(crate) config: ConfigArg,
/// Recompute the room state instead of getting it from the caches
///
/// Note that this can be VERY SLOW for some rooms. `#matrix:matrix.org`
/// has been seen to take around 30 minutes to solve on a 7950X, for
/// example.
#[clap(long, short)]
pub(crate) recompute: bool,
#[clap(flatten)]
observability: ObservabilityArgs,
}