Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

expose transport, peer_info and discovery in sc-network #14132

Merged
merged 3 commits into from
May 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions client/network/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
3 changes: 3 additions & 0 deletions client/network/src/peer_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

//! [`PeerInfoBehaviour`] is implementation of `NetworkBehaviour` that holds information about peers
//! in cache.

use crate::utils::interval;
use either::Either;

Expand Down
2 changes: 2 additions & 0 deletions client/network/src/transport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

//! Transport that serves as a common ground for all connections.

use either::Either;
use libp2p::{
core::{
Expand Down