Restrict ChannelInfo::as_directed_from visibility
[rust-lightning] / lightning / src / routing / gossip.rs
index 1f5f8e5ec390ebfb4fd182c25930399aa30e64b0..a9e98a532c6754646ee2592983dfef8d7c55c06d 100644 (file)
@@ -875,7 +875,7 @@ impl ChannelInfo {
 
        /// Returns a [`DirectedChannelInfo`] for the channel directed from the given `source` to a
        /// returned `target`, or `None` if `source` is not one of the channel's counterparties.
-       pub fn as_directed_from(&self, source: &NodeId) -> Option<(DirectedChannelInfo, &NodeId)> {
+       pub(crate) fn as_directed_from(&self, source: &NodeId) -> Option<(DirectedChannelInfo, &NodeId)> {
                let (direction, target) = {
                        if source == &self.node_one {
                                (self.one_to_two.as_ref(), &self.node_two)