mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2025-11-03 08:07:27 +00:00
Remove dead code
This commit is contained in:
parent
3de0dc5ba3
commit
12cb29d958
@ -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;
|
||||||
|
|||||||
@ -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);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user