Skip to content

Commit 13c1a01

Browse files
committed
change connection strategy and fail immediately
1 parent 818a272 commit 13c1a01

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/sqlite.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -365,9 +365,7 @@ async fn execute_sql_and_params(
365365
Ok(response) => return Ok(response),
366366
Err(err) => {
367367
db.connection.strategy = transport::ActiveStrategy::Http;
368-
if cfg!(debug_assertions) {
369-
eprintln!("WebSocket failed, retrying with HTTP... {}", err);
370-
}
368+
return Err(err);
371369
}
372370
}
373371
}

0 commit comments

Comments
 (0)