Restrict ChannelInfo::as_directed_from visibility
[rust-lightning] / lightning / src / routing / gossip.rs
index faf48cdecc4a7756de7f32c95b86098c1721c4b7..5959874c9561af991a4b0fe7afe76c806550f75c 100644 (file)
@@ -884,7 +884,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, outbound) = {
                        if source == &self.node_one {
                                (self.one_to_two.as_ref(), &self.node_two, true)