We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1284d3e commit b449244Copy full SHA for b449244
frameworks/Rust/hyperlane/src/db/fn.rs
@@ -93,10 +93,10 @@ pub(crate) async fn connection_db() -> DbPoolConnection {
93
let pool: DbPoolConnection = PgPoolOptions::new()
94
.max_connections(max_connections)
95
.min_connections(min_connections)
96
- .acquire_timeout(std::time::Duration::from_secs(1))
97
- .idle_timeout(Some(std::time::Duration::from_secs(300)))
98
- .max_lifetime(Some(std::time::Duration::from_secs(1800)))
99
- .test_before_acquire(true)
+ .acquire_timeout(std::time::Duration::from_secs(2))
+ .idle_timeout(None)
+ .max_lifetime(None)
+ .test_before_acquire(false)
100
.connect(db_url)
101
.await
102
.unwrap();
0 commit comments