Skip to content

Commit d136212

Browse files
author
João Barbosa
committed
Handle expired limit and reset
1 parent 6361f2d commit d136212

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ Limiter.prototype.get = function (fn) {
7070

7171
db.multi()
7272
.set([count, max, 'PX', duration, 'NX'])
73-
.set([limit, max, 'PX', duration, 'NX'])
74-
.set([reset, ex, 'PX', duration, 'NX'])
73+
.set([limit, max, 'PX', duration])
74+
.set([reset, ex, 'PX', duration])
7575
.exec(function (err, res) {
7676
if (err) return fn(err);
7777

0 commit comments

Comments
 (0)