Skip to content

Commit

Permalink
Tidy code
Browse files Browse the repository at this point in the history
  • Loading branch information
ryardley committed Nov 25, 2024
1 parent 5d02f80 commit 0de9d66
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions packages/ciphernode/enclave_node/src/aggregator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ pub async fn setup_aggregator(
.build()
.await?;

let (_, join_handle, peer_id) =
NetworkRelay::setup_with_peer(bus.clone(), config.peers())?;
let (_, join_handle, peer_id) = NetworkRelay::setup_with_peer(bus.clone(), config.peers())?;

if let Some(path) = pubkey_write_path {
PublicKeyWriter::attach(path, bus.clone());
Expand Down
3 changes: 1 addition & 2 deletions packages/ciphernode/enclave_node/src/ciphernode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ pub async fn setup_ciphernode(
.build()
.await?;

let (_, join_handle, peer_id) =
NetworkRelay::setup_with_peer(bus.clone(), config.peers())?;
let (_, join_handle, peer_id) = NetworkRelay::setup_with_peer(bus.clone(), config.peers())?;

let nm = format!("CIPHER({})", &address.to_string()[0..5]);
SimpleLogger::attach(&nm, bus.clone());
Expand Down
3 changes: 2 additions & 1 deletion tests/basic_integration/fns.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
set -eu # Exit immediately if a command exits with a non-zero status
#!/usr/bin/env bash
set -euo pipefail # Stricter error handling

# Get the script's location
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
Expand Down

0 comments on commit 0de9d66

Please sign in to comment.