We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
as_directed_to
1 parent 2b2f4c3 commit 78f4152Copy full SHA for 78f4152
lightning/src/routing/gossip.rs
@@ -1056,7 +1056,7 @@ impl PartialEq for ChannelInfo {
1056
impl ChannelInfo {
1057
/// Returns a [`DirectedChannelInfo`] for the channel directed to the given `target` from a
1058
/// returned `source`, or `None` if `target` is not one of the channel's counterparties.
1059
- pub fn as_directed_to(&self, target: &NodeId) -> Option<(DirectedChannelInfo<'_>, &NodeId)> {
+ pub(crate) fn as_directed_to(&self, target: &NodeId) -> Option<(DirectedChannelInfo<'_>, &NodeId)> {
1060
if self.one_to_two.is_none() || self.two_to_one.is_none() {
1061
return None;
1062
}
0 commit comments