Clippy
This commit is contained in:
parent
7c1e91a09f
commit
ed91898e59
2 changed files with 6 additions and 10 deletions
|
@ -211,7 +211,7 @@ impl Deployment {
|
|||
-> ColmenaResult<()>
|
||||
{
|
||||
let eval_limit = self.evaluation_node_limit.get_limit()
|
||||
.unwrap_or_else(|| self.targets.len());
|
||||
.unwrap_or(self.targets.len());
|
||||
|
||||
let mut futures = Vec::new();
|
||||
|
||||
|
@ -246,7 +246,7 @@ impl Deployment {
|
|||
|
||||
let futures = job.run(|job| async move {
|
||||
let mut evaluator = NixEvalJobs::default();
|
||||
let eval_limit = self.evaluation_node_limit.get_limit().unwrap_or_else(|| self.targets.len());
|
||||
let eval_limit = self.evaluation_node_limit.get_limit().unwrap_or(self.targets.len());
|
||||
evaluator.set_eval_limit(eval_limit);
|
||||
evaluator.set_job(job.clone());
|
||||
|
||||
|
|
|
@ -136,14 +136,10 @@ impl Host for Ssh {
|
|||
|
||||
// Wait for node to come back up
|
||||
loop {
|
||||
match self.get_boot_id().await {
|
||||
Ok(new_id) => {
|
||||
if new_id != old_id {
|
||||
break;
|
||||
}
|
||||
}
|
||||
Err(_) => {
|
||||
// Ignore errors while waiting
|
||||
// Ignore errors while waiting
|
||||
if let Ok(new_id) = self.get_boot_id().await {
|
||||
if new_id != old_id {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue