Skip to content

Commit

Permalink
Use flushdb instead of flushall
Browse files Browse the repository at this point in the history
  • Loading branch information
pmalouin committed Sep 20, 2018
1 parent 97a4cb8 commit 8585ef1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ class LimitDBRedis extends EventEmitter {

const dbs = this.redis.nodes ? this.redis.nodes('master') : [this.redis];
async.each(dbs, (db, cb) => {
db.flushall(cb);
db.flushdb(cb);
}, callback);
}
}
Expand Down

0 comments on commit 8585ef1

Please sign in to comment.