Clippy you are so smart

This commit is contained in:
Pekka Enberg
2025-09-10 13:54:42 +03:00
parent a2f0725a62
commit 9655b455ed

View File

@@ -519,7 +519,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
let mut conn = db.lock().await.connect()?;
println!("\rExecuting queries...");
for query_index in 0..nr_iterations {
if gen_bool(0.001) && false {
if gen_bool(0.0) {
// disabled
if opts.verbose {
println!("Reopening database");
}
@@ -531,7 +532,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
}
*db_guard = builder.build().await?;
conn = db_guard.connect()?;
} else if gen_bool(0.01) && false {
} else if gen_bool(0.0) {
// disabled
// Reconnect to the database
if opts.verbose {
println!("Reconnecting to database");