From c499a6efa78e7676128de594878ae1f67a4e1a4b Mon Sep 17 00:00:00 2001 From: Bulat Kurbanov Date: Mon, 24 Jul 2023 00:31:16 +0200 Subject: [PATCH] Update db pool size --- src/db.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db.rs b/src/db.rs index bd713b9..e9efb35 100644 --- a/src/db.rs +++ b/src/db.rs @@ -3,7 +3,7 @@ use crate::{prisma::PrismaClient, config::CONFIG}; pub async fn get_prisma_client() -> PrismaClient { let database_url: String = format!( - "postgresql://{}:{}@{}:{}/{}", + "postgresql://{}:{}@{}:{}/{}?connection_limit=2", CONFIG.postgres_user, CONFIG.postgres_password, CONFIG.postgres_host,