Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
hatoo committed Jan 13, 2024
1 parent 98f582a commit 2520b5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ pub async fn work(
Err(err) => {
report_tx.send_async(Err(err)).await.unwrap();

if !(counter.fetch_add(1, Ordering::Relaxed) < n_tasks) {
if counter.fetch_add(1, Ordering::Relaxed) >= n_tasks {
return true;
}
}
Expand Down

0 comments on commit 2520b5f

Please sign in to comment.