Skip to content

Commit

Permalink
Merge pull request #2500 from IntersectMBO/chore/decrease-the-limit-o…
Browse files Browse the repository at this point in the history
…f-available-db-connections

chore: decrease number of active connections
  • Loading branch information
MSzalowski authored Dec 10, 2024
2 parents 60c5196 + 5e3a1c1 commit d47e7db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion govtool/backend/app/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit d47e7db

Please sign in to comment.