Remove some unnecessary stuff in Client.js
- Remove message sweeping - shouldn't be needed with max cache size - Remove console spam about db compaction
This commit is contained in:
parent
d452569ad1
commit
7b7645cb5e
|
@ -18,9 +18,7 @@ module.exports = class Client extends Discord.Client {
|
|||
*/
|
||||
constructor(token, commandsDir, guildDataModel) {
|
||||
super({
|
||||
messageCacheMaxSize: 16,
|
||||
messageCacheLifetime: 60,
|
||||
messageSweepInterval: 480
|
||||
messageCacheMaxSize: 16
|
||||
});
|
||||
|
||||
this._token = token;
|
||||
|
@ -100,6 +98,4 @@ function compactCollections() {
|
|||
and camo is designed to work with both NeDB and MongoDB, which is presumably why it doesn't alraedy exist */
|
||||
for (let collectionName of Object.keys(neDB._collections))
|
||||
neDB._collections[collectionName].persistence.compactDatafile();
|
||||
|
||||
Util.dateLog("Executed compaction on loaded NeDB collections");
|
||||
}
|
Loading…
Reference in New Issue