Use one connection

This commit is contained in:
2023-07-24 23:07:05 +02:00
parent 8a555f9899
commit 3767619529

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://{}:{}@{}:{}/{}?connection_limit=2",
"postgresql://{}:{}@{}:{}/{}?connection_limit=1",
CONFIG.postgres_user,
CONFIG.postgres_password,
CONFIG.postgres_host,