Skip to main contentModule mainline_sort
Source use std::collections::HashMap; ๐ use futures::Stream; ๐ use futures::StreamExt; ๐ use futures::TryFutureExt; ๐ use futures::TryStreamExt; ๐ use futures::stream::try_unfold; ๐ use ruma::EventId; ๐ use ruma::OwnedEventId; ๐ use ruma::events::TimelineEventType; ๐ use tuwunel_core::Error; ๐ use tuwunel_core::Result; ๐ use tuwunel_core::at; ๐ use tuwunel_core::result::NotFound; ๐ use tuwunel_core::trace; ๐ use tuwunel_core::utils::stream::BroadbandExt; ๐ use tuwunel_core::utils::stream::TryReadyExt; ๐ use super::super::FetchEvent; ๐ use crate::Event; ๐ use crate::PduEvent; ๐ use crate::event_id::RandomState; ๐
- get_power_levels_auth_event ๐
- mainline_position ๐
- Get the mainline position of the given event from the given mainline map.
- mainline_sort ๐
- Perform mainline ordering of the given events.
- Positions ๐
- Mainline position of each power-levels event, oldest first.