Skip to main content

Module backfill

Module backfill 

Source

Re-exportsΒ§

use std::cmp; πŸ”’
use axum::extract::State; πŸ”’
use futures::FutureExt; πŸ”’
use futures::StreamExt; πŸ”’
use futures::TryStreamExt; πŸ”’
use ruma::MilliSecondsSinceUnixEpoch; πŸ”’
use ruma::api::federation::backfill::get_backfill; πŸ”’
use tuwunel_core::Result; πŸ”’
use tuwunel_core::utils::IterStream; πŸ”’
use tuwunel_core::utils::ReadyExt; πŸ”’
use tuwunel_core::utils::math::usize_from_ruma_bounded; πŸ”’
use tuwunel_matrix::PduCount; πŸ”’
use super::AccessCheck; πŸ”’
use crate::Ruma; πŸ”’

ConstantsΒ§

LIMIT_DEFAULT πŸ”’
no spec defined number but we can handle a lot of these
LIMIT_MAX πŸ”’
arbitrary number but synapse’s is 100 and we can handle lots of these anyways

FunctionsΒ§

get_backfill_route πŸ”’
GET /_matrix/federation/v1/backfill/<room_id>