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

* expose transport, peer_info and discovery in sc-network

* fix fmt

* add missing module docs
This commit is contained in:
klbrvik
2023-05-15 23:45:19 +02:00
committed by GitHub
parent bd45542b20
commit 2453e25fb8
3 changed files with 8 additions and 3 deletions
+3 -3
View File
@@ -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;
@@ -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;
@@ -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::{