Skip to content

Commit

Permalink
increase max connections to sqlx pool
Browse files Browse the repository at this point in the history
  • Loading branch information
kylerchin committed Oct 28, 2024
1 parent bf38e03 commit 0a4f322
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/birch/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -499,11 +499,11 @@ async fn main() -> std::io::Result<()> {
let arc_pool = Arc::clone(&pool);

let conn_pre = arc_pool.as_ref().get().await;
let conn = &mut conn_pre.unwrap();
// let conn = &mut conn_pre.unwrap();

let sqlx_pool: Arc<sqlx::Pool<sqlx::Postgres>> = Arc::new(
PgPoolOptions::new()
.max_connections(5)
.max_connections(16)
.connect(std::env::var("DATABASE_URL").unwrap().as_str())
.await
.unwrap(),
Expand Down

0 comments on commit 0a4f322

Please sign in to comment.