mirror of
https://github.com/flibusta-apps/telegram_files_cache_server.git
synced 2025-12-06 06:35:38 +01:00
Set pool_timeout to 300
This commit is contained in:
@@ -2,7 +2,7 @@ use crate::{config::CONFIG, prisma::PrismaClient};
|
||||
|
||||
pub async fn get_prisma_client() -> PrismaClient {
|
||||
let database_url: String = format!(
|
||||
"postgresql://{}:{}@{}:{}/{}?connection_limit=10",
|
||||
"postgresql://{}:{}@{}:{}/{}?connection_limit=10&pool_timeout=300",
|
||||
CONFIG.postgres_user,
|
||||
CONFIG.postgres_password,
|
||||
CONFIG.postgres_host,
|
||||
|
||||
Reference in New Issue
Block a user