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,