mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-29 21:00:54 +00:00
fix: remove outdated comment, we do have the test_on_acquire setting
This commit is contained in:
parent
bb7c064bec
commit
b7f8a5fa81
@ -260,7 +260,6 @@ async fn check_conn<'s: 'p, 'p, DB: Database>(
|
||||
let _ = conn.close().await;
|
||||
return None;
|
||||
} else if options.test_on_acquire {
|
||||
// TODO: Check on acquire should be a configuration setting
|
||||
// Check that the connection is still live
|
||||
if let Err(e) = conn.ping().await {
|
||||
// an error here means the other end has hung up or we lost connectivity
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user