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 fdb4b4d commit 64c7141Copy full SHA for 64c7141
lightning/src/routing/gossip.rs
@@ -740,7 +740,7 @@ pub struct ChannelInfo {
740
impl ChannelInfo {
741
/// Returns a [`DirectedChannelInfo`] for the channel directed to the given `target` from a
742
/// 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)> {
+ pub(crate) fn as_directed_to(&self, target: &NodeId) -> Option<(DirectedChannelInfo, &NodeId)> {
744
let (direction, source) = {
745
if target == &self.node_one {
746
(self.two_to_one.as_ref(), &self.node_two)
0 commit comments