mirror of
https://github.com/flibusta-apps/users_settings_server.git
synced 2025-12-06 06:35:39 +01:00
Update db pool size
This commit is contained in:
@@ -3,7 +3,7 @@ use crate::{prisma::PrismaClient, config::CONFIG};
|
|||||||
|
|
||||||
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://{}:{}@{}:{}/{}",
|
"postgresql://{}:{}@{}:{}/{}?connection_limit=2",
|
||||||
CONFIG.postgres_user,
|
CONFIG.postgres_user,
|
||||||
CONFIG.postgres_password,
|
CONFIG.postgres_password,
|
||||||
CONFIG.postgres_host,
|
CONFIG.postgres_host,
|
||||||
|
|||||||
Reference in New Issue
Block a user