Skip to content

Commit b6fc161

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 a913b97 commit b6fc161

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
@@ -662,7 +662,7 @@ pub struct ChannelInfo {
662662
impl ChannelInfo {
663663
/// Returns a [`DirectedChannelInfo`] for the channel directed to the given `target` from a
664664
/// returned `source`, or `None` if `target` is not one of the channel's counterparties.
665-
pub fn as_directed_to(&self, target: &NodeId) -> Option<(DirectedChannelInfo, &NodeId)> {
665+
pub(crate) fn as_directed_to(&self, target: &NodeId) -> Option<(DirectedChannelInfo, &NodeId)> {
666666
let (direction, source) = {
667667
if target == &self.node_one {
668668
(self.two_to_one.as_ref(), &self.node_two)

0 commit comments

Comments
 (0)