Skip to main content Module state_local_build Copy item path Source use std::borrow::Borrow ; π use std::collections::HashMap ; π use std::mem::take ; π use std::sync::Arc ; π use std::sync::atomic::AtomicBool ; π use std::sync::atomic::AtomicU64 ; π use std::sync::atomic::Ordering ; π use futures::FutureExt; π use futures::StreamExt; π use futures::TryFutureExt; π use futures::TryStreamExt; π use futures::future::join; π use ruma::EventId; π use ruma::OwnedEventId; π use ruma::OwnedRoomId; π use ruma::RoomId; π use ruma::RoomVersionId; π use ruma::events::StateEventType; π use ruma::events::TimelineEventType; π use ruma::room_version_rules::RoomVersionRules; π use tracing::Instrument; π use tracing::Span; π use tuwunel_core::Result ; π use tuwunel_core::debug ; π use tuwunel_core::debug ; π use tuwunel_core::debug_warn ; π use tuwunel_core::defer ; π use tuwunel_core::err ; π use tuwunel_core::implement; π use tuwunel_core::trace ; π use tuwunel_core::utils::math::fetch_add_usize ; π use tuwunel_core::utils::stream::BroadbandExt ; π use tuwunel_core::utils::stream::IterStream ; π use tuwunel_core::utils::stream::ReadyExt ; π use tuwunel_core::utils::stream::WidebandExt ; π use tuwunel_matrix::Event ; π use tuwunel_matrix::PduEvent ; π use tuwunel_matrix::pdu::PrevEvents ; π use tuwunel_matrix::room::state::resolution::AuthCheckOutcome ; π use tuwunel_matrix::room::state::resolution::auth_check ; π use tuwunel_matrix::room_version ; π use tuwunel_matrix::room_version::from_create_event ; π use crate::rooms::short::ShortStateHash ; π use crate::rooms::short::ShortStateKey ; π use crate::rooms::state::IdMapState ; π use crate::rooms::state_compressor::CompressedState ; π LocalBuildReport Summary of one local build attempt, for the admin debug command. Node π Held outlier in the walk sub-DAG. StateLocalCounters π StateLocalMetrics Immutable process-lifetime totals for production local state builds. Walk π State threaded through one walkβs discovery and build phases. WalkAttempt π Class π Ancestry classification from the discovery phase. Fallback π Why a walk gave up; every reason falls back to the federation fetch. WalkMode π Active writes fork-node memo rows; Shadow suppresses all persistent
writes. WalkOutcome π MAX_LIVE_ENTRIES π Ceiling on simultaneously live state-map entries across one walk: the sum
of the lengths of materialized maps no consumer has released yet.
Exceeding it falls back to the federation fetch. Deliberately a const, not
config; revisit only if operation trips it. StateIds π State before or after one event, in the shape the sibling builders return.