Просмотр исходного кода

fix: stop pass milis not seconds into setTimeout

Hayden Faulds 8 лет назад
Родитель
Сommit
d750f942de
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      services/web/app/coffee/infrastructure/LockManager.coffee

+ 1 - 1
services/web/app/coffee/infrastructure/LockManager.coffee

@@ -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}"