From b7f8a5fa8183236642a38484f41d8461ce0b2afd Mon Sep 17 00:00:00 2001 From: Ryan Leckey Date: Mon, 1 Jun 2020 05:37:26 -0700 Subject: [PATCH] fix: remove outdated comment, we do have the test_on_acquire setting --- sqlx-core/src/pool/inner.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/sqlx-core/src/pool/inner.rs b/sqlx-core/src/pool/inner.rs index 1ac794ac..bbd2201e 100644 --- a/sqlx-core/src/pool/inner.rs +++ b/sqlx-core/src/pool/inner.rs @@ -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