From 7208cdf795368e393ac9f048c0946b93139203f0 Mon Sep 17 00:00:00 2001
From: Jerry Wang <j3rry.wan9@gmail.com>
Date: Thu, 18 May 2023 11:40:19 -0700
Subject: [PATCH] Fix the `cargo hack` check (#2013)

---
 examples/sqlx-postgres/Cargo.toml  | 2 +-
 examples/sqlx-postgres/src/main.rs | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/sqlx-postgres/Cargo.toml b/examples/sqlx-postgres/Cargo.toml
index 0587dc7f..48a976c3 100644
--- a/examples/sqlx-postgres/Cargo.toml
+++ b/examples/sqlx-postgres/Cargo.toml
@@ -10,4 +10,4 @@ tokio = { version = "1.0", features = ["full"] }
 tracing = "0.1"
 tracing-subscriber = { version = "0.3", features = ["env-filter"] }
 
-sqlx = { version = "0.5.10", features = ["runtime-tokio-rustls", "any", "postgres"] }
+sqlx = { version = "0.6.3", features = ["runtime-tokio-rustls", "any", "postgres"] }
diff --git a/examples/sqlx-postgres/src/main.rs b/examples/sqlx-postgres/src/main.rs
index e9553037..d9317bc8 100644
--- a/examples/sqlx-postgres/src/main.rs
+++ b/examples/sqlx-postgres/src/main.rs
@@ -42,7 +42,7 @@ async fn main() {
     // setup connection pool
     let pool = PgPoolOptions::new()
         .max_connections(5)
-        .connect_timeout(Duration::from_secs(3))
+        .acquire_timeout(Duration::from_secs(3))
         .connect(&db_connection_str)
         .await
         .expect("can't connect to database");