mirror of
https://github.com/penpot/penpot.git
synced 2025-06-07 12:21:38 +02:00
♻️ Refactor dispatcher implementation.
Simplify code and probabluy improve performance.
This commit is contained in:
parent
cd8a907a86
commit
1ac6e466ce
9 changed files with 82 additions and 76 deletions
|
@ -13,7 +13,7 @@
|
|||
[clojure.tools.logging :as log]
|
||||
[cuerdas.core :as str]
|
||||
[postal.core :as postal]
|
||||
[vertx.core :as vc]
|
||||
[vertx.util :as vu]
|
||||
[promesa.core :as p]
|
||||
[uxbox.common.exceptions :as ex]
|
||||
[uxbox.config :as cfg]
|
||||
|
@ -49,7 +49,7 @@
|
|||
|
||||
(defn send-email
|
||||
[email]
|
||||
(vc/blocking
|
||||
(vu/blocking
|
||||
(let [config (get-smtp-config cfg/config)
|
||||
result (if (:enabled config)
|
||||
(postal/send-message config email)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue