mirror of
https://github.com/tokio-rs/axum.git
synced 2025-03-13 19:27:53 +01:00
Fix the cargo hack
check (#2013)
This commit is contained in:
parent
b0eb7a24bc
commit
7208cdf795
2 changed files with 2 additions and 2 deletions
|
@ -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"] }
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue