Skip to content

Commit 78f4152

Browse files
committed
Make as_directed_to non-public
...as the bindings generation does not currently have the ability to map a reference to a `NodeId` inside a tuple.
1 parent 2b2f4c3 commit 78f4152

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/routing/gossip.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,7 @@ impl PartialEq for ChannelInfo {
10561056
impl ChannelInfo {
10571057
/// Returns a [`DirectedChannelInfo`] for the channel directed to the given `target` from a
10581058
/// 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)> {
1059+
pub(crate) fn as_directed_to(&self, target: &NodeId) -> Option<(DirectedChannelInfo<'_>, &NodeId)> {
10601060
if self.one_to_two.is_none() || self.two_to_one.is_none() {
10611061
return None;
10621062
}

0 commit comments

Comments
 (0)