Fix comments
This commit is contained in:
parent
73fd1f66c5
commit
9c12c5b62e
|
@ -126,7 +126,7 @@ export async function doWithLock<T>(
|
||||||
lock = await redlock.lock(name, opts.ttl)
|
lock = await redlock.lock(name, opts.ttl)
|
||||||
|
|
||||||
if (opts.type === LockType.AUTO_EXTEND) {
|
if (opts.type === LockType.AUTO_EXTEND) {
|
||||||
// No TTL is provided, so we keep extending the lock while the task is running
|
// We keep extending the lock while the task is running
|
||||||
const extendInIntervals = (): void => {
|
const extendInIntervals = (): void => {
|
||||||
timeout = setTimeout(async () => {
|
timeout = setTimeout(async () => {
|
||||||
let isExpired = false
|
let isExpired = false
|
||||||
|
|
Loading…
Reference in New Issue