Skip to main content

choose_best_channel

Function choose_best_channel 

Source
pub(crate) fn choose_best_channel<'a, C: AbstractChannel>(
    channels: impl IntoIterator<Item = &'a ChannelState<C>>,
    target: &(impl HasRelayIds + HasChanMethod),
) -> Option<&'a ChannelState<C>>
Expand description

Returns the best channel for target.