Expand description
The timestamp index roomid_tscount_pducount.
Each timeline event has one row keyed by its room, its timestamp and its
biased count, holding the count, so a timestamp seeks to the events nearest
it. The index derives from pduid_pdu, and its rebuild writes over it without
clearing it first.
Re-exportsยง
use std::fmt;๐use std::sync::Arc;๐use futures::Stream;๐use ruma::MilliSecondsSinceUnixEpoch;๐use ruma::OwnedRoomId;๐use ruma::RoomId;๐use serde::Deserialize;๐use serde::Deserialize;๐use tuwunel_core::Result;๐use tuwunel_core::implement;๐use tuwunel_core::result::NotFound;๐use tuwunel_core::utils::TryReadyExt;๐use tuwunel_core::utils::stream::TryBroadbandExt;๐use tuwunel_database::KeyBuf;๐use tuwunel_database::KeyVal;๐use tuwunel_database::Map;๐use tuwunel_matrix::pdu::RawPduId;๐use super::Check;๐use super::Report;๐use super::ScanExt;๐use super::tally;๐use crate::Services;๐use crate::rooms::timeline::bias_count;๐
Structsยง
Enumsยง
- Expected ๐
- What one event row gives the index.
- Finding
- A timeline event whose timestamp index row is absent or wrong.
Staticsยง
- CHECK ๐
Functionsยง
- derive ๐
- expected ๐
- Streams the row each timeline event gives the index.
- scan
- Streams each timeline event whose index row is absent or holds another count.
- verify ๐
Type Aliasesยง
- Key ๐