mirror of
https://github.com/penpot/penpot.git
synced 2025-07-23 09:27:29 +02:00
📎 Minor changes on internal audit module buffers.
This commit is contained in:
parent
71524fe649
commit
585e5d0199
2 changed files with 5 additions and 3 deletions
|
@ -75,9 +75,9 @@
|
|||
[_ {:keys [enabled] :as cfg}]
|
||||
(when enabled
|
||||
(l/info :msg "intializing audit collector")
|
||||
(let [input (a/chan 1 event-xform)
|
||||
(let [input (a/chan 512 event-xform)
|
||||
buffer (aa/batch input {:max-batch-size 100
|
||||
:max-batch-age (* 5 1000)
|
||||
:max-batch-age (* 10 1000) ; 10s
|
||||
:init []})]
|
||||
(a/go-loop []
|
||||
(when-let [[type events] (a/<! buffer)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue