[scraper] disable swarm seeders update for now

This commit is contained in:
TheBeastLT
2020-04-24 20:31:36 +02:00
parent 2434482d99
commit dc35b4e982

View File

@@ -33,10 +33,10 @@ async function _updateSeeders(torrent) {
return []
});
if (!updatedTorrents.find(updated => updated.infoHash === torrent.infoHash)) {
await forceSeedersLimiter.schedule(() => updateCurrentSeeders(torrent))
.then(updated => updatedTorrents.push(updated));
}
// if (!updatedTorrents.find(updated => updated.infoHash === torrent.infoHash)) {
// await forceSeedersLimiter.schedule(() => updateCurrentSeeders(torrent))
// .then(updated => updatedTorrents.push(updated));
// }
return Promise.all(updatedTorrents.map(updated => updateLimiter.schedule(() => updateTorrentSeeders(updated))));
}