From 451e4628ec32ef2b9c1c922532e54e26ad127974 Mon Sep 17 00:00:00 2001 From: danielSanchezQ <3danimanimal@gmail.com> Date: Wed, 31 Jul 2024 13:22:18 +0200 Subject: [PATCH] Cargo fmt --- nodes/nomos-node/src/lib.rs | 2 +- nomos-da/network/core/src/replication/behaviour.rs | 2 +- nomos-da/network/core/src/replication/handler.rs | 4 ++-- nomos-da/network/core/src/replication/mod.rs | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/nodes/nomos-node/src/lib.rs b/nodes/nomos-node/src/lib.rs index 11f35ee9..e328bac6 100644 --- a/nodes/nomos-node/src/lib.rs +++ b/nodes/nomos-node/src/lib.rs @@ -18,10 +18,10 @@ pub use nomos_core::{ use nomos_da_verifier::backend::kzgrs::KzgrsDaVerifier; #[cfg(feature = "tracing")] use nomos_log::Logger; -use nomos_mempool::{backend::mockpool::MockPool, TxMempoolService}; use nomos_mempool::da::service::DaMempoolService; use nomos_mempool::da::verify::kzgrs::DaVerificationProvider as MempoolVerificationProvider; use nomos_mempool::network::adapters::libp2p::Libp2pAdapter as MempoolNetworkAdapter; +use nomos_mempool::{backend::mockpool::MockPool, TxMempoolService}; #[cfg(feature = "metrics")] use nomos_metrics::Metrics; use nomos_network::backends::libp2p::Libp2p as NetworkBackend; diff --git a/nomos-da/network/core/src/replication/behaviour.rs b/nomos-da/network/core/src/replication/behaviour.rs index 8eba580f..ef08faf3 100644 --- a/nomos-da/network/core/src/replication/behaviour.rs +++ b/nomos-da/network/core/src/replication/behaviour.rs @@ -5,12 +5,12 @@ use std::task::{Context, Poll}; // crates use either::Either; use indexmap::IndexSet; -use libp2p::{Multiaddr, PeerId}; use libp2p::core::Endpoint; use libp2p::swarm::{ ConnectionDenied, ConnectionId, FromSwarm, NetworkBehaviour, NotifyHandler, THandler, THandlerInEvent, THandlerOutEvent, ToSwarm, }; +use libp2p::{Multiaddr, PeerId}; use log::{error, trace}; use subnetworks_assignations::MembershipHandler; diff --git a/nomos-da/network/core/src/replication/handler.rs b/nomos-da/network/core/src/replication/handler.rs index 25571f2a..45fee199 100644 --- a/nomos-da/network/core/src/replication/handler.rs +++ b/nomos-da/network/core/src/replication/handler.rs @@ -6,10 +6,10 @@ use futures::Future; // crates use futures::future::BoxFuture; use futures::prelude::*; -use libp2p::{Stream, StreamProtocol}; use libp2p::core::upgrade::ReadyUpgrade; -use libp2p::swarm::{ConnectionHandler, ConnectionHandlerEvent, SubstreamProtocol}; use libp2p::swarm::handler::{ConnectionEvent, FullyNegotiatedInbound, FullyNegotiatedOutbound}; +use libp2p::swarm::{ConnectionHandler, ConnectionHandlerEvent, SubstreamProtocol}; +use libp2p::{Stream, StreamProtocol}; use log::trace; use tracing::error; diff --git a/nomos-da/network/core/src/replication/mod.rs b/nomos-da/network/core/src/replication/mod.rs index 2e669efa..de461ca8 100644 --- a/nomos-da/network/core/src/replication/mod.rs +++ b/nomos-da/network/core/src/replication/mod.rs @@ -7,12 +7,12 @@ mod test { use std::time::Duration; use futures::StreamExt; - use libp2p::{Multiaddr, PeerId, quic, Swarm}; use libp2p::identity::Keypair; use libp2p::swarm::SwarmEvent; + use libp2p::{quic, Multiaddr, PeerId, Swarm}; use log::info; - use tracing_subscriber::EnvFilter; use tracing_subscriber::fmt::TestWriter; + use tracing_subscriber::EnvFilter; use nomos_da_messages::common::Blob; use subnetworks_assignations::MembershipHandler;