Function sentry::db::list_channels
source · pub async fn list_channels(
pool: &DbPool,
skip: u64,
limit: u32,
validator: Option<ValidatorId>,
chains: &[ChainId]
) -> Result<ChannelListResponse, PoolError>Expand description
Lists the Channels in ASC order.
This makes sure that if a new [Channel] is added
while we are scrolling through the pages it will not alter the [Channel]s ordering.