1
0
Fork 0
mirror of synced 2024-07-27 09:06:08 +12:00

Fix usage of custom locks

This commit is contained in:
Rory Powell 2023-05-05 14:42:21 +01:00
parent cde5259e44
commit 1ba5eda149

View file

@ -85,7 +85,7 @@ export const doWithLock = async <T>(
opts: LockOptions,
task: () => Promise<T>
): Promise<RedlockExecution<T>> => {
const redlock = await getClient(opts.type)
const redlock = await getClient(opts.type, opts.customOptions)
let lock
try {
// determine lock name