Create a semafore lock for transaction links.

This commit is contained in:
elweyn 2023-06-29 12:09:42 +02:00
parent 77b7d5b414
commit 74ce9b3067

View File

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