Skip to content

Commit bc305c9

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 b734735 commit bc305c9

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
@@ -829,7 +829,7 @@ pub struct ChannelInfo {
829829
impl ChannelInfo {
830830
/// Returns a [`DirectedChannelInfo`] for the channel directed to the given `target` from a
831831
/// returned `source`, or `None` if `target` is not one of the channel's counterparties.
832-
pub fn as_directed_to(&self, target: &NodeId) -> Option<(DirectedChannelInfo, &NodeId)> {
832+
pub(crate) fn as_directed_to(&self, target: &NodeId) -> Option<(DirectedChannelInfo, &NodeId)> {
833833
let (direction, source) = {
834834
if target == &self.node_one {
835835
(self.two_to_one.as_ref(), &self.node_two)

0 commit comments

Comments
 (0)