From 42b6ce8e222618b8222168560dd5a06911a2a2e1 Mon Sep 17 00:00:00 2001 From: klbrvik <124571753+klbrvik@users.noreply.github.com> Date: Fri, 12 May 2023 16:30:14 +0200 Subject: [PATCH 1/3] expose transport, peer_info and discovery in sc-network --- client/network/src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/network/src/lib.rs b/client/network/src/lib.rs index 79023923e8b05..52f7443e0702e 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; +mod protocol; 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; From 262fe7c24721818bec11cf048bce9cb2fe2735cb Mon Sep 17 00:00:00 2001 From: klbrvik <124571753+klbrvik@users.noreply.github.com> Date: Fri, 12 May 2023 17:12:59 +0200 Subject: [PATCH 2/3] fix fmt --- client/network/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/network/src/lib.rs b/client/network/src/lib.rs index 52f7443e0702e..a66c187cacf7b 100644 --- a/client/network/src/lib.rs +++ b/client/network/src/lib.rs @@ -243,8 +243,8 @@ //! More precise usage details are still being worked on and will likely change in the future. mod behaviour; -mod service; mod protocol; +mod service; pub mod config; pub mod discovery; From fde679ab8d6a88d0eeb82da89e822e0a46667fe9 Mon Sep 17 00:00:00 2001 From: viktor Date: Mon, 15 May 2023 21:27:01 +0200 Subject: [PATCH 3/3] add missing module docs --- client/network/src/peer_info.rs | 3 +++ client/network/src/transport.rs | 2 ++ 2 files changed, 5 insertions(+) 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::{