File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
frameworks/Rust/hyperlane/src Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 } ;
3535pub ( crate ) use utils:: * ;
3636
3737#[ tokio:: main]
You can’t perform that action at this time.
0 commit comments