Expand description
Check-only reads of timeline events.
The live readers panic on an eventid_pduid mapping of the wrong length, so
integrity checks read through here, where that mapping is Mapped::Damaged.
get_checked reads as get does, racing the accepted branch (the mapping,
then the row) against the outlier copy, so a check reports a damaged mapping
only where get would panic and misses it when an outlier copy is found
first. get_checked_keeping reads the accepted branch before the outlier as
get_room_version does, so it always reports one. A copy is decoded as a
release build of the live readers decodes it, without a debug buildβs
assertion that no further record follows the eventβs.
Re-exportsΒ§
use futures::FutureExt;πuse futures::TryFutureExt;πuse futures::future::try_join;πuse ruma::EventId;πuse serde::Deserialize;πuse serde::Deserialize;πuse tuwunel_core::Error;πuse tuwunel_core::Result;πuse tuwunel_core::implement;πuse tuwunel_core::result::NotFound;πuse super::RawPduId;πuse super::Service;πuse crate::integrity::leading_json;π