Skip to content

Commit 28ed4a5

Browse files
jkczyzTheBlueMatt
authored andcommitted
Restrict ChannelInfo::as_directed_from visibility
Bindings can't handle references in return types, so reduce the visibility to pub(crate).
1 parent 78f4152 commit 28ed4a5

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
@@ -1075,7 +1075,7 @@ impl ChannelInfo {
10751075

10761076
/// Returns a [`DirectedChannelInfo`] for the channel directed from the given `source` to a
10771077
/// returned `target`, or `None` if `source` is not one of the channel's counterparties.
1078-
pub fn as_directed_from(&self, source: &NodeId) -> Option<(DirectedChannelInfo<'_>, &NodeId)> {
1078+
pub(crate) fn as_directed_from(&self, source: &NodeId) -> Option<(DirectedChannelInfo<'_>, &NodeId)> {
10791079
if self.one_to_two.is_none() || self.two_to_one.is_none() {
10801080
return None;
10811081
}

0 commit comments

Comments
 (0)