Update db pool size

This commit is contained in:
2023-07-24 00:31:16 +02:00
parent 15353e789b
commit c499a6efa7

View File

@@ -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,