Skip to content

Commit 18d77da

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 4345849 commit 18d77da

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
@@ -755,7 +755,7 @@ impl ChannelInfo {
755755

756756
/// Returns a [`DirectedChannelInfo`] for the channel directed from the given `source` to a
757757
/// returned `target`, or `None` if `source` is not one of the channel's counterparties.
758-
pub fn as_directed_from(&self, source: &NodeId) -> Option<(DirectedChannelInfo, &NodeId)> {
758+
pub(crate) fn as_directed_from(&self, source: &NodeId) -> Option<(DirectedChannelInfo, &NodeId)> {
759759
let (direction, target) = {
760760
if source == &self.node_one {
761761
(self.one_to_two.as_ref(), &self.node_two)

0 commit comments

Comments
 (0)