Remove dead code

This commit is contained in:
Caio 2025-05-05 21:41:49 -03:00
parent 3de0dc5ba3
commit 12cb29d958
2 changed files with 0 additions and 6 deletions

View File

@ -154,7 +154,6 @@
unused_import_braces unused_import_braces
)] )]
#![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(feature = "nightly", allow(unstable_features))]
/// Hash infrastructure for items in Merkle tree. /// Hash infrastructure for items in Merkle tree.
pub mod hash; pub mod hash;

View File

@ -407,11 +407,6 @@ fn build_transport(
) -> std::io::Result<(BoxedTransport, Arc<BandwidthSinks>)> { ) -> std::io::Result<(BoxedTransport, Arc<BandwidthSinks>)> {
let tcp = libp2p::tcp::TokioTcpConfig::new().nodelay(true); let tcp = libp2p::tcp::TokioTcpConfig::new().nodelay(true);
let transport = libp2p::dns::TokioDnsConfig::system(tcp)?; let transport = libp2p::dns::TokioDnsConfig::system(tcp)?;
#[cfg(feature = "libp2p-websocket")]
let transport = {
let trans_clone = transport.clone();
transport.or_transport(libp2p::websocket::WsConfig::new(trans_clone))
};
let (transport, bandwidth) = BandwidthLogging::new(transport); let (transport, bandwidth) = BandwidthLogging::new(transport);