Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ktdlr committed Oct 22, 2024
1 parent 59f5cb7 commit 655da02
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
8 changes: 7 additions & 1 deletion packages/ciphernode/enclave_node/src/ciphernode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion packages/ciphernode/enclave_node/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ mod ciphernode;
mod shutdown;

pub use aggregator::*;
pub use ciphernode::*;
pub use app_config::*;
pub use ciphernode::*;
pub use shutdown::*;
2 changes: 1 addition & 1 deletion packages/ciphernode/evm/src/enclave_sol_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ impl Handler<EnclaveEvent> for EnclaveSolWriter {
if self.provider.get_chain_id() == data.src_chain_id {
ctx.notify(data);
}
},
}
EnclaveEvent::Shutdown { data, .. } => ctx.notify(data),
_ => (),
}
Expand Down
4 changes: 2 additions & 2 deletions packages/ciphernode/evm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
5 changes: 3 additions & 2 deletions packages/ciphernode/evm/src/registry_filter_sol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -70,7 +71,7 @@ impl Handler<EnclaveEvent> for RegistryFilterSolWriter {
if self.provider.get_chain_id() == data.src_chain_id {
ctx.notify(data);
}
},
}
EnclaveEvent::Shutdown { data, .. } => ctx.notify(data),
_ => (),
}
Expand Down

0 comments on commit 655da02

Please sign in to comment.