Skip to main content

Module via

Module via 

Source
Expand description

Routing-server hints derived from membership and invitation state.

Power levels and joined-member distribution produce prospective routing servers, while inbound invite hints are kept in a compact aggregate row. The aggregate reader exposes only the final stored server from each row.

Re-exportsยง

use std::cmp::Reverse; ๐Ÿ”’
use futures::Stream; ๐Ÿ”’
use futures::StreamExt; ๐Ÿ”’
use futures::stream::iter; ๐Ÿ”’
use ruma::OwnedServerName; ๐Ÿ”’
use ruma::RoomId; ๐Ÿ”’
use ruma::ServerName; ๐Ÿ”’
use ruma::events::StateEventType; ๐Ÿ”’
use ruma::events::room::power_levels::RoomPowerLevelsEventContent; ๐Ÿ”’
use ruma::int; ๐Ÿ”’
use tuwunel_core::Result; ๐Ÿ”’
use tuwunel_core::implement; ๐Ÿ”’
use tuwunel_core::itertools::Itertools; ๐Ÿ”’
use tuwunel_core::utils::StreamTools; ๐Ÿ”’
use tuwunel_core::utils::stream::TryIgnore; ๐Ÿ”’
use tuwunel_core::warn; ๐Ÿ”’
use tuwunel_database::Ignore; ๐Ÿ”’
use tuwunel_database::Txn; ๐Ÿ”’