mirror of
https://github.com/flibusta-apps/services_manager_server.git
synced 2025-12-06 20:45:37 +01:00
Use one connection
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user