We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
as_directed_to
1 parent 159fae7 commit 0817bbbCopy full SHA for 0817bbb
lightning/src/routing/network_graph.rs
@@ -685,7 +685,7 @@ pub struct ChannelInfo {
685
impl ChannelInfo {
686
/// Returns a [`DirectedChannelInfo`] for the channel directed to the given `target` from a
687
/// 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)> {
+ pub(crate) fn as_directed_to(&self, target: &NodeId) -> Option<(DirectedChannelInfo, &NodeId)> {
689
let (direction, source) = {
690
if target == &self.node_one {
691
(self.two_to_one.as_ref(), &self.node_two)
0 commit comments