Restrict ChannelInfo::as_directed_from visibility
[rust-lightning] / lightning / src / routing / gossip.rs
index a30f6ff4e35017fae029a0e0d559bbbd27f9067e..23e282ea42ec1a8bc6f3d7a9f31f032050be6683 100644 (file)
@@ -873,7 +873,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)