mirror of
https://github.com/penpot/penpot.git
synced 2025-05-28 18:36:10 +02:00
📎 Fix linter issues.
This commit is contained in:
parent
b2e7bb6be1
commit
053d46144e
5 changed files with 20 additions and 2 deletions
|
@ -80,7 +80,7 @@
|
|||
:max-batch-age (* 10 1000) ; 10s
|
||||
:init []})]
|
||||
(a/go-loop []
|
||||
(when-let [[type events] (a/<! buffer)]
|
||||
(when-let [[_type events] (a/<! buffer)]
|
||||
(let [res (a/<! (persist-events cfg events))]
|
||||
(when (ex/exception? res)
|
||||
(l/error :hint "error on persiting events"
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
(defmethod ig/init-key ::handler
|
||||
[_ {:keys [pool max-age] :as cfg}]
|
||||
(fn [task]
|
||||
(fn [_]
|
||||
(db/with-atomic [conn pool]
|
||||
(let [interval (db/interval max-age)
|
||||
result (db/exec-one! conn [sql:delete-files-xlog interval])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue