Skip to content

Commit

Permalink
remove pointless reading from redis
Browse files Browse the repository at this point in the history
  • Loading branch information
K1 committed Jul 24, 2015
1 parent f366f60 commit 898f87d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/plugins/queueLock.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ queueLock.prototype.before_enqueue = function(callback){
callback(null, false);
}else{
self.worker.connection.redis.set(key, timeout, function(err){
self.worker.connection.redis.get(key, function(err, redisTimeout){
callback(err, !err);
});
callback(err, !err);
});
}
});
Expand Down

0 comments on commit 898f87d

Please sign in to comment.