Skip to main content

Module thread_summaries

Module thread_summaries 

Source
Expand description

The thread summaries stored on thread roots.

A root’s unsigned holds its thread’s reply count and latest reply, kept current as replies arrive and are redacted. The roots are the ones threadid_userids lists.

Re-exportsΒ§

use std::fmt; πŸ”’
use std::sync::Arc; πŸ”’
use futures::Stream; πŸ”’
use futures::TryStreamExt; πŸ”’
use ruma::CanonicalJsonObject; πŸ”’
use ruma::UInt; πŸ”’
use tuwunel_core::Result; πŸ”’
use tuwunel_core::itertools::Either::Left; πŸ”’
use tuwunel_core::itertools::Either::Right; πŸ”’
use tuwunel_core::result::NotFound; πŸ”’
use tuwunel_core::utils::TryReadyExt; πŸ”’
use tuwunel_database::KeyBuf; πŸ”’
use tuwunel_database::Map; πŸ”’
use tuwunel_matrix::RawPduId; πŸ”’
use super::Check; πŸ”’
use super::Report; πŸ”’
use super::ScanExt; πŸ”’
use super::leading_json; πŸ”’
use super::tally; πŸ”’
use crate::Services; πŸ”’
use crate::rooms::threads::Recount; πŸ”’

EnumsΒ§

Finding
A thread root whose stored summary disagrees with its replies, or cannot be read.

StaticsΒ§

CHECK πŸ”’

FunctionsΒ§

finding πŸ”’
scan
Streams each listed thread root whose summary disagrees with a recount.
verify πŸ”’