Skip to main contentModule prev_walk
Source use std::collections::BTreeMap; ๐ use std::sync::Mutex; ๐ use std::sync::MutexGuard; ๐ use std::sync::atomic::AtomicU64; ๐ use std::sync::atomic::Ordering; ๐ use std::thread::panicking; ๐ use std::time::Duration; ๐ use std::time::Instant; ๐ use ruma::OwnedEventId; ๐ use ruma::OwnedRoomId; ๐ use ruma::OwnedServerName; ๐ use tuwunel_core::Error; ๐ use tuwunel_core::Result; ๐ use tuwunel_core::debug_info; ๐ use tuwunel_core::implement; ๐ use tuwunel_core::utils::MutexExt; ๐ use tuwunel_core::utils::math::fetch_add_usize; ๐ use tuwunel_core::warn; ๐ pub use self::history::PrevWalkPass;pub use self::history::PrevWalkRoom;use super::Service; ๐ use super::fetch_prev::PrevFetch; ๐ use super::handle_prev_pdu::PrevUpgrade; ๐
- history ๐
- InFlightWalk
- A gapped incoming event whose pass is in flight.
- InFlightWalks ๐
- Registry of the passes in flight, keyed by ids taken in registration order.
- Pass ๐
- The end of one pass, computed once when its guard drops.
- PrevWalk ๐
- Drop guard over one gapped incoming event, from its backoff lookup through
the backward fetch and the upgrade of its previous events.
- PrevWalkCounters ๐
- PrevWalkMetrics
- Snapshot of process-lifetime totals for incoming previous-event walks.
- Walk
- The walking phase of a pass, entered when the backward fetch returns
previous events.
- Outcome
- How the pass of a gapped incoming event ended.
- log_fetch_end ๐
- log_walk_end ๐
- Walks ๐