external semaphore transactions lock file

This commit is contained in:
Ulf Gebhardt 2022-12-15 13:05:59 +01:00
parent c2c7e34539
commit 3d52875588
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -0,0 +1,4 @@
import { Semaphore } from 'await-semaphore'
const CONCURRENT_TRANSACTIONS = 1
export const TRANSACTIONS_LOCK = new Semaphore(CONCURRENT_TRANSACTIONS)