mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-02 05:41:33 +02:00
fix: stop pass milis not seconds into setTimeout
This commit is contained in:
@@ -23,7 +23,7 @@ module.exports = LockManager =
|
||||
metrics.inc "lock.#{namespace}.exceeded_lock_timeout"
|
||||
logger.log "exceeded lock timeout", { namespace, id, slowExecutionError }
|
||||
|
||||
setTimeout countIfExceededLockTimeout, LockManager.REDIS_LOCK_EXPIRY
|
||||
setTimeout countIfExceededLockTimeout, LockManager.REDIS_LOCK_EXPIRY * 1000
|
||||
|
||||
timer = new metrics.Timer("lock.#{namespace}")
|
||||
key = "lock:web:#{namespace}:#{id}"
|
||||
|
||||
Reference in New Issue
Block a user