1
0
Fork 0
mirror of synced 2024-10-04 03:54:37 +13:00

Fix comments

This commit is contained in:
Adria Navarro 2023-11-29 22:01:49 +01:00
parent 73fd1f66c5
commit 9c12c5b62e

View file

@ -126,7 +126,7 @@ export async function doWithLock<T>(
lock = await redlock.lock(name, opts.ttl)
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 => {
timeout = setTimeout(async () => {
let isExpired = false