Fix the cargo hack check (#2013)

This commit is contained in:
Jerry Wang
2023-05-18 18:40:19 +00:00
committed by GitHub
parent b0eb7a24bc
commit 7208cdf795
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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"] }
+1 -1
View File
@@ -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");