Skip to main content

Module get_missing_events

Module get_missing_events 

Source

Re-exportsΒ§

use std::collections::BTreeSet; πŸ”’
use std::collections::VecDeque; πŸ”’
use axum::extract::State; πŸ”’
use futures::StreamExt; πŸ”’
use futures::TryFutureExt; πŸ”’
use futures::TryStreamExt; πŸ”’
use futures::future::try_join; πŸ”’
use futures::stream::FuturesOrdered; πŸ”’
use futures::stream::unfold; πŸ”’
use ruma::CanonicalJsonObject; πŸ”’
use ruma::CanonicalJsonValue; πŸ”’
use ruma::EventId; πŸ”’
use ruma::OwnedEventId; πŸ”’
use ruma::api::federation::event::get_missing_events; πŸ”’
use ruma::canonical_json::redact_in_place; πŸ”’
use tuwunel_core::Error; πŸ”’
use tuwunel_core::Result; πŸ”’
use tuwunel_core::debug; πŸ”’
use tuwunel_core::debug; πŸ”’
use tuwunel_core::err; πŸ”’
use tuwunel_core::utils::math::usize_from_ruma_bounded; πŸ”’
use tuwunel_core::utils::stream::TryWidebandExt; πŸ”’
use tuwunel_core::utils::stream::automatic_width; πŸ”’
use tuwunel_matrix::room_version::rules as room_version_rules; πŸ”’
use super::AccessCheck; πŸ”’
use crate::Ruma; πŸ”’

ConstantsΒ§

EARLIEST_MAX πŸ”’
LIMIT_DEFAULT πŸ”’
spec says default is 10
LIMIT_MAX πŸ”’
arbitrary number but synapse’s is 20 and we can handle lots of these anyways
WALK_MAX πŸ”’

FunctionsΒ§

get_missing_events_route πŸ”’
POST /_matrix/federation/v1/get_missing_events/{roomId}
next_missing_event πŸ”’
walk_seed πŸ”’
Builds the walk’s dedup set and its initial queue.

Type AliasesΒ§

Pending πŸ”’
Seen πŸ”’