Skip to content

Commit 64c7141

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 fdb4b4d commit 64c7141

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
@@ -740,7 +740,7 @@ pub struct ChannelInfo {
740740
impl ChannelInfo {
741741
/// Returns a [`DirectedChannelInfo`] for the channel directed to the given `target` from a
742742
/// returned `source`, or `None` if `target` is not one of the channel's counterparties.
743-
pub fn as_directed_to(&self, target: &NodeId) -> Option<(DirectedChannelInfo, &NodeId)> {
743+
pub(crate) fn as_directed_to(&self, target: &NodeId) -> Option<(DirectedChannelInfo, &NodeId)> {
744744
let (direction, source) = {
745745
if target == &self.node_one {
746746
(self.two_to_one.as_ref(), &self.node_two)

0 commit comments

Comments
 (0)