Skip to content

Commit

Permalink
Fix bug in has_broken
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Simulacrum committed Dec 7, 2024
1 parent f987cf4 commit 16b78ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/db/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ impl r2d2::ManageConnection for SqliteConnectionManager {
}

fn has_broken(&self, conn: &mut Self::Connection) -> bool {
self.is_valid(conn).is_ok()
self.is_valid(conn).is_err()
}
}

Expand Down

0 comments on commit 16b78ba

Please sign in to comment.