Skip to content

Commit

Permalink
don't use
Browse files Browse the repository at this point in the history
  • Loading branch information
0xdeafbeef committed Jun 27, 2024
1 parent f2f76de commit 045c522
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,7 @@ pub trait Connection: Send + Sync {
fn update_was_dead(&self, is_dead: bool);

async fn is_alive(&self) -> bool {
return true;
let check_result = self.is_alive_inner().await;

Check warning on line 526 in client/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite

unreachable statement

Check failure on line 526 in client/src/lib.rs

View workflow job for this annotation

GitHub Actions / Lints

unreachable statement
let is_alive = check_result.as_bool();
self.update_was_dead(!is_alive);
Expand Down

0 comments on commit 045c522

Please sign in to comment.