Set pool_timeout to 300

This commit is contained in:
2024-05-24 13:59:28 +02:00
parent 49ca7f2e2b
commit eec1c77071

View File

@@ -2,7 +2,7 @@ use crate::{config::CONFIG, prisma::PrismaClient};
pub async fn get_prisma_client() -> PrismaClient { pub async fn get_prisma_client() -> PrismaClient {
let database_url: String = format!( let database_url: String = format!(
"postgresql://{}:{}@{}:{}/{}?connection_limit=10", "postgresql://{}:{}@{}:{}/{}?connection_limit=10&pool_timeout=300",
CONFIG.postgres_user, CONFIG.postgres_user,
CONFIG.postgres_password, CONFIG.postgres_password,
CONFIG.postgres_host, CONFIG.postgres_host,