Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
dyc3 committed Mar 21, 2024
1 parent 791549a commit b36eabe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions crates/ott-balancer/src/balancer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,8 @@ impl Balancer {
}
// process completed tasks
task_result = tasks.next() => {
if let Some(task_result) = task_result {
if let Err(err) = task_result {
error!("error in task: {:?}", err);
}
if let Some(Err(err)) = task_result {
error!("error in task: {:?}", err);
}
}
}
Expand Down
6 changes: 2 additions & 4 deletions crates/ott-balancer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,8 @@ pub async fn run() -> anyhow::Result<()> {

// process completed tasks
result = tasks.next() => {
if let Some(result) = result {
if let Err(err) = result {
error!("Error in http serving task: {:?}", err);
}
if let Some(Err(err)) = result {
error!("Error in http serving task: {:?}", err);
}
continue;
}
Expand Down

0 comments on commit b36eabe

Please sign in to comment.