Fix usage of custom locks
This commit is contained in:
parent
cde5259e44
commit
1ba5eda149
|
@ -85,7 +85,7 @@ export const doWithLock = async <T>(
|
||||||
opts: LockOptions,
|
opts: LockOptions,
|
||||||
task: () => Promise<T>
|
task: () => Promise<T>
|
||||||
): Promise<RedlockExecution<T>> => {
|
): Promise<RedlockExecution<T>> => {
|
||||||
const redlock = await getClient(opts.type)
|
const redlock = await getClient(opts.type, opts.customOptions)
|
||||||
let lock
|
let lock
|
||||||
try {
|
try {
|
||||||
// determine lock name
|
// determine lock name
|
||||||
|
|
Loading…
Reference in New Issue