feat(swarm): remove unused types from public API

Pull-Request: #3497.
This commit is contained in:
Thomas Eizinger
2023-02-24 09:25:27 +11:00
committed by GitHub
parent 79fce51f9b
commit 794b2a23d0
2 changed files with 9 additions and 13 deletions

View File

@ -108,10 +108,7 @@ pub use behaviour::{
NewListenAddr, NotifyHandler, PollParameters,
};
pub use connection::pool::{ConnectionCounters, ConnectionLimits};
pub use connection::{
ConnectionError, ConnectionId, ConnectionLimit, PendingConnectionError,
PendingInboundConnectionError, PendingOutboundConnectionError,
};
pub use connection::{ConnectionError, ConnectionId, ConnectionLimit};
pub use executor::Executor;
pub use handler::{
ConnectionHandler, ConnectionHandlerEvent, ConnectionHandlerSelect, ConnectionHandlerUpgrErr,
@ -124,6 +121,9 @@ pub use registry::{AddAddressResult, AddressRecord, AddressScore};
use connection::pool::{EstablishedConnection, Pool, PoolConfig, PoolEvent};
use connection::IncomingInfo;
use connection::{
PendingConnectionError, PendingInboundConnectionError, PendingOutboundConnectionError,
};
use dial_opts::{DialOpts, PeerCondition};
use futures::{executor::ThreadPoolBuilder, prelude::*, stream::FusedStream};
use libp2p_core::muxing::SubstreamBox;