Skip to content

Commit

Permalink
fix(mempool-adapter): cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
MrWad3r committed May 10, 2024
1 parent 2c94141 commit 67023a3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion cli/src/node/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ impl Node {
supported_block_version: 50,
supported_capabilities: supported_capabilities(),
max_collate_threads: 1,
test_validators_keypairs: vec![]
test_validators_keypairs: vec![],
};

let collation_manager = CollationManager::start(
Expand Down
10 changes: 3 additions & 7 deletions consensus/examples/consensus_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@ impl CmdRun {
}

let (committed_tx, committed_rx) = mpsc::unbounded_channel();
let engine =
Engine::new(key_pair.clone(), &dht_client, &overlay, committed_tx).await;
let engine = Engine::new(key_pair.clone(), &dht_client, &overlay, committed_tx).await;
drain_anchors(committed_rx);

tracing::info!(
Expand Down Expand Up @@ -186,11 +185,8 @@ impl CmdGenDht {
fn run(self) -> Result<()> {
let secret_key = parse_key(&self.key)?;
let key_pair = Arc::new(KeyPair::from(&secret_key));
let entry = tycho_consensus::test_utils::make_peer_info(
key_pair,
self.addr.into(),
self.ttl,
);
let entry =
tycho_consensus::test_utils::make_peer_info(key_pair, self.addr.into(), self.ttl);
let output = if std::io::stdin().is_terminal() {
serde_json::to_string_pretty(&entry)
} else {
Expand Down
4 changes: 3 additions & 1 deletion consensus/src/test_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ mod tests {
}
let mut engines = vec![];
let (committed_tx, committed_rx) = mpsc::unbounded_channel();
for (key_pair, (dht_client, overlay_service)) in keys.into_iter().zip(from_validators.iter()) {
for (key_pair, (dht_client, overlay_service)) in
keys.into_iter().zip(from_validators.iter())
{
let engine = Engine::new(
key_pair.clone(),
&dht_client,
Expand Down

0 comments on commit 67023a3

Please sign in to comment.