swarthy/redis-semaphore

View on GitHub
src/misc.ts

Summary

Maintainability
A
0 mins
Test Coverage
import LostLockError from '../src/errors/LostLockError'

export const defaultTimeoutOptions = {
  lockTimeout: 10000,
  acquireTimeout: 10000,
  acquireAttemptsLimit: Number.POSITIVE_INFINITY,
  retryInterval: 10
}

export function defaultOnLockLost(err: LostLockError) {
  throw err
}