diff --git a/node/tools/src/bin/deployer.rs b/node/tools/src/bin/deployer.rs index cd4b21e4..57a026f0 100644 --- a/node/tools/src/bin/deployer.rs +++ b/node/tools/src/bin/deployer.rs @@ -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}; diff --git a/node/tools/src/k8s.rs b/node/tools/src/k8s.rs index fd1af91c..8ffc4935 100644 --- a/node/tools/src/k8s.rs +++ b/node/tools/src/k8s.rs @@ -361,13 +361,12 @@ where Fut: std::future::Future>, { 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") }