Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroXbrock committed Jan 6, 2025
1 parent f84ea67 commit c90e9af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions crates/cli/src/commands/spam.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ pub async fn spam(
let mut agents = AgentStore::new();
let signers_per_period = args
.txs_per_block
.unwrap_or(args.txs_per_second.unwrap_or(spam.len()))
/ spam.len();
.unwrap_or(args.txs_per_second.unwrap_or(spam.len()));

let mut all_signers = vec![];
all_signers.extend_from_slice(&user_signers);
Expand Down
3 changes: 3 additions & 0 deletions crates/cli/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ pub fn get_spam_pools(testconfig: &TestConfig) -> Vec<String> {
}
}

// filter out non-unique pools
from_pools.sort();
from_pools.dedup();
from_pools
}

Expand Down

0 comments on commit c90e9af

Please sign in to comment.