mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
Create a semafore lock for transaction links.
This commit is contained in:
parent
77b7d5b414
commit
74ce9b3067
4
backend/src/util/TRANSACTION_LINK_LOCK.ts
Normal file
4
backend/src/util/TRANSACTION_LINK_LOCK.ts
Normal file
@ -0,0 +1,4 @@
|
||||
import { Semaphore } from 'await-semaphore'
|
||||
|
||||
const CONCURRENT_TRANSACTIONS = 1
|
||||
export const TRANSACTION_LINK_LOCK = new Semaphore(CONCURRENT_TRANSACTIONS)
|
||||
Loading…
x
Reference in New Issue
Block a user