Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dknopik committed Oct 22, 2024
1 parent 764c225 commit 2600e69
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/src/clients/geth_bootnode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ impl Client for GethBootnode {
),
environment: HashMap::new(),
expected_final_state: "running".into(),
start_time: "0s".into()
start_time: "0s".into(),
})
}
}
3 changes: 2 additions & 1 deletion lib/src/clients/lighthouse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ impl Client for Lighthouse {
ctx.metadata_path().to_str().ok_or(Error::NonUTF8Path)?,
ctx.jwt_path().to_str().ok_or(Error::NonUTF8Path)?,
ctx.cl_bootnode_enrs().join(","),
self.common.arguments("--disable-quic --disable-upnp --disable-packet-filter"),
self.common
.arguments("--disable-quic --disable-upnp --disable-packet-filter"),
);
if self.lower_target_peers && ctx.num_cl_clients() <= 100 {
args.push_str(&format!("--target-peers {}", ctx.num_cl_clients() - 1));
Expand Down
6 changes: 1 addition & 5 deletions lib/src/config/ethshadow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,7 @@ impl SugaredNode {
fn combinations(&self) -> usize {
self.locations.len()
* self.reliabilities.len()
* self
.clients
.values()
.map(OneOrMany::len)
.product::<usize>()
* self.clients.values().map(OneOrMany::len).product::<usize>()
}

fn count_per_combination(&self) -> Result<usize, Error> {
Expand Down

0 comments on commit 2600e69

Please sign in to comment.