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

Commit

Permalink
expose transport, peer_info and discovery in sc-network (#14132)
Browse files Browse the repository at this point in the history
* expose transport, peer_info and discovery in sc-network

* fix fmt

* add missing module docs
  • Loading branch information
klbrvik authored May 15, 2023
1 parent be4c7cb commit 2af3ba8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
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

0 comments on commit 2af3ba8

Please sign in to comment.