Skip to content

Commit

Permalink
fix: autoCompact not working on both store
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed Mar 23, 2020
1 parent 5132810 commit 741d273
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/MqttClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ function init (config) {
}

if (config.store) {
var manager = NeDBStore(utils.joinPath(utils.getPath(true), storeDir, this.clientID), {autocompactionInterval: 30000})
const COMPACT = { autocompactionInterval: 30000 }
var manager = NeDBStore(utils.joinPath(utils.getPath(true), storeDir, this.clientID), {incoming: COMPACT, outgoing: COMPACT})
options.incomingStore = manager.incoming
options.outgoingStore = manager.outgoing
}
Expand Down

0 comments on commit 741d273

Please sign in to comment.