Fix wrong commited code
This commit is contained in:
parent
a8ac4eed6d
commit
bd89633e61
|
@ -71,7 +71,7 @@ const OPTIONS: Record<keyof typeof LockType, Redlock.Options> = {
|
|||
}
|
||||
|
||||
export async function newRedlock(opts: Redlock.Options = {}) {
|
||||
let options = { ...OPTIONS, ...opts }
|
||||
const options = { ...OPTIONS.DEFAULT, ...opts }
|
||||
const redisWrapper = await getLockClient()
|
||||
const client = redisWrapper.getClient()
|
||||
return new Redlock([client], options)
|
||||
|
|
Loading…
Reference in New Issue