Skip to content

Commit c506d59

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 66f4173 commit c506d59

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
@@ -712,7 +712,7 @@ pub struct ChannelInfo {
712712
impl ChannelInfo {
713713
/// Returns a [`DirectedChannelInfo`] for the channel directed to the given `target` from a
714714
/// returned `source`, or `None` if `target` is not one of the channel's counterparties.
715-
pub fn as_directed_to(&self, target: &NodeId) -> Option<(DirectedChannelInfo, &NodeId)> {
715+
pub(crate) fn as_directed_to(&self, target: &NodeId) -> Option<(DirectedChannelInfo, &NodeId)> {
716716
let (direction, source) = {
717717
if target == &self.node_one {
718718
(self.two_to_one.as_ref(), &self.node_two)

0 commit comments

Comments
 (0)