Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
hatoo committed Jan 14, 2024
1 parent a480ba2 commit c5c1af4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1100,7 +1100,7 @@ pub async fn work_with_qps_latency_correction(
}
Err(err) => {
// Consume a task
if let Ok(_) = rx.recv_async().await {
if rx.recv_async().await.is_ok() {
report_tx.send_async(Err(err)).await.unwrap();
} else {
return;
Expand Down Expand Up @@ -1336,7 +1336,7 @@ pub async fn work_until_with_qps(
}
Err(err) => {
// Consume a task
if let Ok(_) = rx.recv_async().await {
if rx.recv_async().await.is_ok() {
report_tx.send_async(Err(err)).await.unwrap();
} else {
return;
Expand Down Expand Up @@ -1482,7 +1482,7 @@ pub async fn work_until_with_qps_latency_correction(
}

Err(err) => {
if let Ok(_) = rx.recv_async().await {
if rx.recv_async().await.is_ok() {
report_tx.send_async(Err(err)).await.unwrap();
} else {
return;
Expand Down

0 comments on commit c5c1af4

Please sign in to comment.