chore: remove asyncLock

closes #928
This commit is contained in:
Tom Moor
2019-06-23 17:57:37 -07:00
parent 0a8a685c12
commit f406faf08e
4 changed files with 123 additions and 100 deletions

View File

@@ -1,11 +1,6 @@
// @flow
import redis from 'redis';
import redisLock from 'redis-lock';
const client = redis.createClient(process.env.REDIS_URL);
const lock = redisLock(client);
const asyncLock = (lockName: string): * =>
new Promise(resolve => lock(lockName, unlock => resolve(unlock)));
export { client, asyncLock };
export { client };