Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ryardley committed Oct 10, 2024
1 parent 1c1dd5a commit eb94fcc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/ciphernode/core/src/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ pub enum EnclaveErrorType {
IO,
PlaintextAggregation,
Decryption,
Sortition
Sortition,
}

impl EnclaveError {
Expand Down
2 changes: 1 addition & 1 deletion packages/ciphernode/evm/src/registry_filter_sol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
4 changes: 1 addition & 3 deletions packages/ciphernode/p2p/src/libp2p_router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down Expand Up @@ -163,5 +163,3 @@ impl EnclaveRouter {
}
}
}


4 changes: 3 additions & 1 deletion packages/ciphernode/p2p/src/p2p.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ impl Handler<EnclaveEvent> 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!")
}
}
})
}
Expand Down

0 comments on commit eb94fcc

Please sign in to comment.