Increased slave database limits due to demands from researchSync

This commit is contained in:
Danielv123 committed 2018-04-16 08:48:54 +02:00
1 parent b7b0dd9d85
commit 5076b4e8e1
1 file changed
+1 -1
+1 -1
View File
@@ -191,7 +191,7 @@ db.items.removeItem = function(object) {
process.on('SIGINT', function () {
console.log('Ctrl-C...');
// set insane limit to slave length, if its longer than this we are probably being ddosed or something
if(slaves && Object.keys(slaves).length < 50000){
if(slaves && Object.keys(slaves).length < 2000000){
console.log("saving to slaves.json");
fs.writeFileSync("database/slaves.json", JSON.stringify(slaves));
} else if(slaves) {