Skip to content

Commit 0817bbb

Browse files
TheBlueMattjkczyz
authored andcommitted
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 159fae7 commit 0817bbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/routing/network_graph.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ pub struct ChannelInfo {
685685
impl ChannelInfo {
686686
/// Returns a [`DirectedChannelInfo`] for the channel directed to the given `target` from a
687687
/// returned `source`, or `None` if `target` is not one of the channel's counterparties.
688-
pub fn as_directed_to(&self, target: &NodeId) -> Option<(DirectedChannelInfo, &NodeId)> {
688+
pub(crate) fn as_directed_to(&self, target: &NodeId) -> Option<(DirectedChannelInfo, &NodeId)> {
689689
let (direction, source) = {
690690
if target == &self.node_one {
691691
(self.two_to_one.as_ref(), &self.node_two)

0 commit comments

Comments
 (0)