From 5e3a1c1141e95666ca54e203af581eadd96c9990 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sza=C5=82owski?= Date: Tue, 10 Dec 2024 13:12:12 +0100 Subject: [PATCH] chore: decrease number of active connections --- govtool/backend/app/Main.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/govtool/backend/app/Main.hs b/govtool/backend/app/Main.hs index e8372f0e8..02f217e21 100644 --- a/govtool/backend/app/Main.hs +++ b/govtool/backend/app/Main.hs @@ -125,7 +125,7 @@ startApp vvaConfig sentryService = do , dRepListCache , networkMetricsCache } - connectionPool <- createPool (connectPostgreSQL (encodeUtf8 (dbSyncConnectionString $ getter vvaConfig))) close 10 10 120 + connectionPool <- createPool (connectPostgreSQL (encodeUtf8 (dbSyncConnectionString $ getter vvaConfig))) close 1 10 60 let appEnv = AppEnv {vvaConfig=vvaConfig, vvaCache=cacheEnv, vvaConnectionPool=connectionPool } server' <- mkVVAServer appEnv runSettings settings server'