Fix lock timeout bug

This commit is contained in:
Zaid Abdulla committed 2017-05-12 02:43:21 -07:00
1 parent ef8aeda02d
commit 3f72bdd84b
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -135,7 +135,7 @@ function redisLock(lockName, ttl, callback) {
}
}
redisClient.set(lockName, token, "NX", "PX", ttl, function(err, res) {
redisClient.set(lockName, token, "NX", "EX", ttl, function(err, res) {
if (err || res)
return callback(err, unlockOrExtend);