Skip to content

Commit

Permalink
Merge branch 'main' into full_config_in_cli
Browse files Browse the repository at this point in the history
  • Loading branch information
ElFantasma committed Mar 13, 2024
2 parents 7d855e1 + 3fb1bc5 commit 0c028dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions node/tools/src/bin/deployer.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//! Deployer for the kubernetes cluster.
use std::collections::HashMap;

use clap::Parser;
use std::collections::HashMap;
use zksync_consensus_roles::{node, validator};
use zksync_consensus_tools::k8s::ConsensusNode;
use zksync_consensus_tools::{k8s, AppConfig};
Expand Down
5 changes: 2 additions & 3 deletions node/tools/src/k8s.rs
Original file line number Diff line number Diff line change
Expand Up @@ -361,13 +361,12 @@ where
Fut: std::future::Future<Output = anyhow::Result<T>>,
{
let mut interval = time::interval(delay);
let mut count = 0;
loop {
for count in 0.. {
interval.tick().await;
count += 1;
let result = f().await;
if result.is_ok() || count > retries {
return result;
}
}
unreachable!("Loop sould always return")
}

0 comments on commit 0c028dc

Please sign in to comment.