Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
ryardley committed Nov 3, 2024
1 parent 401db49 commit 0a62fd5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
1 change: 0 additions & 1 deletion packages/ciphernode/core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ mod ordered_set;
pub use eventbus::*;
pub use events::*;
pub use ordered_set::*;

5 changes: 4 additions & 1 deletion packages/ciphernode/evm/src/ciphernode_registry_sol.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
use crate::{helpers::{ReadonlyProvider, WithChainId}, EvmEventReader};
use crate::{
helpers::{ReadonlyProvider, WithChainId},
EvmEventReader,
};
use actix::Addr;
use alloy::{
primitives::{LogData, B256},
Expand Down
8 changes: 2 additions & 6 deletions packages/ciphernode/evm/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,7 @@ pub async fn stream_from_evm<P: Provider<T>, T: Transport + Clone>(
extractor: fn(&LogData, Option<&B256>, u64) -> Option<EnclaveEvent>,
mut shutdown: oneshot::Receiver<()>,
) {
match provider
.get_provider()
.subscribe_logs(&filter)
.await
{
match provider.get_provider().subscribe_logs(&filter).await {
Ok(subscription) => {
let mut stream = subscription.into_stream();
loop {
Expand Down Expand Up @@ -63,7 +59,7 @@ pub async fn stream_from_evm<P: Provider<T>, T: Transport + Clone>(
}
}
Err(e) => {
bus.err(EnclaveErrorType::Evm, anyhow!("{}",e));
bus.err(EnclaveErrorType::Evm, anyhow!("{}", e));
}
};
info!("Exiting stream loop");
Expand Down
3 changes: 2 additions & 1 deletion packages/ciphernode/evm/src/registry_filter_sol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ use actix::prelude::*;
use alloy::{
primitives::{Address, Bytes, U256},
rpc::types::TransactionReceipt,
sol, transports::BoxTransport,
sol,
transports::BoxTransport,
};
use anyhow::Result;
use enclave_core::{
Expand Down

0 comments on commit 0a62fd5

Please sign in to comment.