From eb94fcc414948e20a499eb664903db30788c0e5c Mon Sep 17 00:00:00 2001 From: ryardley Date: Thu, 10 Oct 2024 19:27:53 +1100 Subject: [PATCH] Fix formatting --- packages/ciphernode/core/src/events.rs | 2 +- packages/ciphernode/evm/src/registry_filter_sol.rs | 2 +- packages/ciphernode/p2p/src/libp2p_router.rs | 4 +--- packages/ciphernode/p2p/src/p2p.rs | 4 +++- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/ciphernode/core/src/events.rs b/packages/ciphernode/core/src/events.rs index e63b7cdb..527ad643 100644 --- a/packages/ciphernode/core/src/events.rs +++ b/packages/ciphernode/core/src/events.rs @@ -539,7 +539,7 @@ pub enum EnclaveErrorType { IO, PlaintextAggregation, Decryption, - Sortition + Sortition, } impl EnclaveError { diff --git a/packages/ciphernode/evm/src/registry_filter_sol.rs b/packages/ciphernode/evm/src/registry_filter_sol.rs index 76a3da4a..318e065e 100644 --- a/packages/ciphernode/evm/src/registry_filter_sol.rs +++ b/packages/ciphernode/evm/src/registry_filter_sol.rs @@ -11,8 +11,8 @@ use enclave_core::{ BusError, E3id, EnclaveErrorType, EnclaveEvent, EventBus, OrderedSet, PublicKeyAggregated, Subscribe, }; -use tracing::info; use std::sync::Arc; +use tracing::info; sol!( #[sol(rpc)] diff --git a/packages/ciphernode/p2p/src/libp2p_router.rs b/packages/ciphernode/p2p/src/libp2p_router.rs index d7beee1f..9ed1a8c8 100644 --- a/packages/ciphernode/p2p/src/libp2p_router.rs +++ b/packages/ciphernode/p2p/src/libp2p_router.rs @@ -2,13 +2,13 @@ use futures::stream::StreamExt; use libp2p::{ gossipsub, identity, mdns, noise, swarm::NetworkBehaviour, swarm::SwarmEvent, tcp, yamux, }; -use tracing::{error, info, trace}; use std::collections::hash_map::DefaultHasher; use std::error::Error; use std::hash::{Hash, Hasher}; use std::time::Duration; use tokio::sync::mpsc::{channel, Receiver, Sender}; use tokio::{io, select}; +use tracing::{error, info, trace}; use tracing_subscriber::EnvFilter; #[derive(NetworkBehaviour)] @@ -163,5 +163,3 @@ impl EnclaveRouter { } } } - - diff --git a/packages/ciphernode/p2p/src/p2p.rs b/packages/ciphernode/p2p/src/p2p.rs index ffd44ed8..d094705f 100644 --- a/packages/ciphernode/p2p/src/p2p.rs +++ b/packages/ciphernode/p2p/src/p2p.rs @@ -116,7 +116,9 @@ impl Handler for P2p { Ok(bytes) => { let _ = tx.send(bytes).await; } - Err(error) => error!(error=?error, "Could not convert event to bytes for serialization!"), + Err(error) => { + error!(error=?error, "Could not convert event to bytes for serialization!") + } } }) }