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.