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 2cc9a4d commit 2bcd067Copy full SHA for 2bcd067
lightning/src/routing/gossip.rs
@@ -712,7 +712,7 @@ pub struct ChannelInfo {
712
impl ChannelInfo {
713
/// Returns a [`DirectedChannelInfo`] for the channel directed to the given `target` from a
714
/// 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)> {
+ pub(crate) fn as_directed_to(&self, target: &NodeId) -> Option<(DirectedChannelInfo, &NodeId)> {
716
let (direction, source) = {
717
if target == &self.node_one {
718
(self.two_to_one.as_ref(), &self.node_two)
0 commit comments