From 655da02e2112126a86519ba66023b57c144e68e8 Mon Sep 17 00:00:00 2001 From: ktdlr Date: Tue, 22 Oct 2024 11:43:52 +1100 Subject: [PATCH] Formatting --- packages/ciphernode/enclave_node/src/ciphernode.rs | 8 +++++++- packages/ciphernode/enclave_node/src/lib.rs | 2 +- packages/ciphernode/evm/src/enclave_sol_writer.rs | 2 +- packages/ciphernode/evm/src/lib.rs | 4 ++-- packages/ciphernode/evm/src/registry_filter_sol.rs | 5 +++-- 5 files changed, 14 insertions(+), 7 deletions(-) diff --git a/packages/ciphernode/enclave_node/src/ciphernode.rs b/packages/ciphernode/enclave_node/src/ciphernode.rs index ba329dc2..2b1367be 100644 --- a/packages/ciphernode/enclave_node/src/ciphernode.rs +++ b/packages/ciphernode/enclave_node/src/ciphernode.rs @@ -100,7 +100,13 @@ impl MainCiphernode { let nm = format!("CIPHER({})", &address.to_string()[0..5]); SimpleLogger::attach(&nm, bus.clone()); MainCiphernode::new( - address, bus.clone(), store, sortition, selector, p2p_addr, e3_manager, + address, + bus.clone(), + store, + sortition, + selector, + p2p_addr, + e3_manager, ) .start(); Ok((bus, join_handle)) diff --git a/packages/ciphernode/enclave_node/src/lib.rs b/packages/ciphernode/enclave_node/src/lib.rs index 7f475274..533fe309 100644 --- a/packages/ciphernode/enclave_node/src/lib.rs +++ b/packages/ciphernode/enclave_node/src/lib.rs @@ -4,6 +4,6 @@ mod ciphernode; mod shutdown; pub use aggregator::*; -pub use ciphernode::*; pub use app_config::*; +pub use ciphernode::*; pub use shutdown::*; diff --git a/packages/ciphernode/evm/src/enclave_sol_writer.rs b/packages/ciphernode/evm/src/enclave_sol_writer.rs index 410efa62..5c8fcf10 100644 --- a/packages/ciphernode/evm/src/enclave_sol_writer.rs +++ b/packages/ciphernode/evm/src/enclave_sol_writer.rs @@ -76,7 +76,7 @@ impl Handler for EnclaveSolWriter { if self.provider.get_chain_id() == data.src_chain_id { ctx.notify(data); } - }, + } EnclaveEvent::Shutdown { data, .. } => ctx.notify(data), _ => (), } diff --git a/packages/ciphernode/evm/src/lib.rs b/packages/ciphernode/evm/src/lib.rs index 51d70288..d13e040a 100644 --- a/packages/ciphernode/evm/src/lib.rs +++ b/packages/ciphernode/evm/src/lib.rs @@ -2,13 +2,13 @@ mod ciphernode_registry_sol; mod enclave_sol; mod enclave_sol_reader; mod enclave_sol_writer; +mod event_reader; pub mod helpers; mod registry_filter_sol; -mod event_reader; pub use ciphernode_registry_sol::{CiphernodeRegistrySol, CiphernodeRegistrySolReader}; pub use enclave_sol::EnclaveSol; pub use enclave_sol_reader::EnclaveSolReader; pub use enclave_sol_writer::EnclaveSolWriter; -pub use registry_filter_sol::{RegistryFilterSol, RegistryFilterSolWriter}; pub use event_reader::EvmEventReader; +pub use registry_filter_sol::{RegistryFilterSol, RegistryFilterSolWriter}; diff --git a/packages/ciphernode/evm/src/registry_filter_sol.rs b/packages/ciphernode/evm/src/registry_filter_sol.rs index bf3842be..244e204f 100644 --- a/packages/ciphernode/evm/src/registry_filter_sol.rs +++ b/packages/ciphernode/evm/src/registry_filter_sol.rs @@ -8,7 +8,8 @@ use alloy::{ }; use anyhow::Result; use enclave_core::{ - BusError, E3id, EnclaveErrorType, EnclaveEvent, EventBus, OrderedSet, PublicKeyAggregated, Shutdown, Subscribe + BusError, E3id, EnclaveErrorType, EnclaveEvent, EventBus, OrderedSet, PublicKeyAggregated, + Shutdown, Subscribe, }; use std::sync::Arc; use tracing::info; @@ -70,7 +71,7 @@ impl Handler for RegistryFilterSolWriter { if self.provider.get_chain_id() == data.src_chain_id { ctx.notify(data); } - }, + } EnclaveEvent::Shutdown { data, .. } => ctx.notify(data), _ => (), }