0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-23 05:01:23 -05:00

Start using normal pool (instead of thread local) for db.

This commit is contained in:
Andrey Antukh 2020-01-23 17:51:32 +01:00
parent 3e8b570c6b
commit 82500ca079

View file

@ -15,8 +15,7 @@
[uxbox.core :refer [system]]
[uxbox.util.data :as data]
[uxbox.util.pgsql :as pg]
[vertx.core :as vx])
(:import io.vertx.core.buffer.Buffer))
[vertx.core :as vx]))
(defn- create-pool
[config system]
@ -28,7 +27,7 @@
(assoc :password password)
(str))]
(log/info "creating connection pool with" dburi)
(pg/tl-pool dburi {:system system})))
(pg/pool dburi {:system system :max-size 8})))
(defstate pool
:start (create-pool cfg/config system))