mirror of
https://github.com/penpot/penpot.git
synced 2025-06-03 17:01:40 +02:00
🐛 Process thumbnail creation in serie (less resource usage).
This commit is contained in:
parent
121d300cf7
commit
aaa8bfe67d
3 changed files with 8 additions and 7 deletions
|
@ -32,8 +32,8 @@
|
|||
(defn populate-thumbnail
|
||||
[row]
|
||||
(let [opts +thumbnail-options+]
|
||||
(-> (px/submit! #(images/populate-thumbnails row opts))
|
||||
(su/handle-on-context))))
|
||||
(-> (p/promise row)
|
||||
(p/then (vc/wrap-blocking #(images/populate-thumbnail % opts))))))
|
||||
|
||||
(defn populate-thumbnails
|
||||
[rows]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue