diff --git a/client/network/src/lib.rs b/client/network/src/lib.rs index 79023923e8b05..a66c187cacf7b 100644 --- a/client/network/src/lib.rs +++ b/client/network/src/lib.rs @@ -243,17 +243,17 @@ //! More precise usage details are still being worked on and will likely change in the future. mod behaviour; -mod discovery; -mod peer_info; mod protocol; mod service; -mod transport; pub mod config; +pub mod discovery; pub mod error; pub mod event; pub mod network_state; +pub mod peer_info; pub mod request_responses; +pub mod transport; pub mod types; pub mod utils; diff --git a/client/network/src/peer_info.rs b/client/network/src/peer_info.rs index e4a5c5753a00c..aab3fc9487e8c 100644 --- a/client/network/src/peer_info.rs +++ b/client/network/src/peer_info.rs @@ -16,6 +16,9 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . +//! [`PeerInfoBehaviour`] is implementation of `NetworkBehaviour` that holds information about peers +//! in cache. + use crate::utils::interval; use either::Either; diff --git a/client/network/src/transport.rs b/client/network/src/transport.rs index 9e63ce98878a6..4136b34fc0e8e 100644 --- a/client/network/src/transport.rs +++ b/client/network/src/transport.rs @@ -16,6 +16,8 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . +//! Transport that serves as a common ground for all connections. + use either::Either; use libp2p::{ core::{