mirror of
https://github.com/tokio-rs/axum.git
synced 2025-10-03 07:44:52 +00:00
Fix the cargo hack
check (#2013)
This commit is contained in:
parent
b0eb7a24bc
commit
7208cdf795
@ -10,4 +10,4 @@ tokio = { version = "1.0", features = ["full"] }
|
|||||||
tracing = "0.1"
|
tracing = "0.1"
|
||||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
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
|
// setup connection pool
|
||||||
let pool = PgPoolOptions::new()
|
let pool = PgPoolOptions::new()
|
||||||
.max_connections(5)
|
.max_connections(5)
|
||||||
.connect_timeout(Duration::from_secs(3))
|
.acquire_timeout(Duration::from_secs(3))
|
||||||
.connect(&db_connection_str)
|
.connect(&db_connection_str)
|
||||||
.await
|
.await
|
||||||
.expect("can't connect to database");
|
.expect("can't connect to database");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user