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;๐