mirror of
https://github.com/penpot/penpot.git
synced 2025-07-11 07:57:16 +02:00
♻️ Refactor semaphore and executors
This commit is contained in:
parent
12b98c22bc
commit
6f42f4ec45
12 changed files with 293 additions and 207 deletions
|
@ -315,7 +315,7 @@
|
|||
(contains? o :changes-with-metadata)))))
|
||||
|
||||
(sv/defmethod ::update-file
|
||||
{::rsem/permits (cf/get :rpc-semaphore-permits-file-update)}
|
||||
{::rsem/queue :update-file}
|
||||
[{:keys [pool] :as cfg} {:keys [id profile-id] :as params}]
|
||||
(db/with-atomic [conn pool]
|
||||
(db/xact-lock! conn id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue