Skip to content

Commit 908c350

Browse files
committed
feat: lock
1 parent 5da4ec2 commit 908c350

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

frameworks/Rust/hyperlane/src/db.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,9 @@ pub async fn connection_db() -> DbPoolConnection {
117117
),
118118
};
119119
let pool: DbPoolConnection = PgPoolOptions::new()
120-
.max_connections(1_000)
121-
.max_lifetime(Some(Duration::from_secs(860_400)))
120+
.min_connections(1_000)
121+
.min_connections(1_000_000)
122+
.max_lifetime(None)
122123
.idle_timeout(None)
123124
.connect(db_url)
124125
.await

frameworks/Rust/hyperlane/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub(crate) use sqlx::{
3131
postgres::{PgPoolOptions, PgRow},
3232
Pool, Postgres, Row,
3333
};
34-
pub(crate) use std::{fmt, sync::Arc, time::Duration};
34+
pub(crate) use std::{fmt, sync::Arc};
3535
pub(crate) use utils::*;
3636

3737
#[tokio::main]

0 commit comments

Comments
 (0)