Skip to content

Commit b449244

Browse files
committed
feat: toml
1 parent 1284d3e commit b449244

File tree

1 file changed

+4
-4
lines changed
  • frameworks/Rust/hyperlane/src/db

1 file changed

+4
-4
lines changed

frameworks/Rust/hyperlane/src/db/fn.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ pub(crate) async fn connection_db() -> DbPoolConnection {
9393
let pool: DbPoolConnection = PgPoolOptions::new()
9494
.max_connections(max_connections)
9595
.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)
96+
.acquire_timeout(std::time::Duration::from_secs(2))
97+
.idle_timeout(None)
98+
.max_lifetime(None)
99+
.test_before_acquire(false)
100100
.connect(db_url)
101101
.await
102102
.unwrap();

0 commit comments

Comments
 (0)