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:
parent
3e8b570c6b
commit
82500ca079
1 changed files with 2 additions and 3 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue