fix: reduce request items

This commit is contained in:
Laam Pui
2021-01-10 17:08:11 +08:00
parent 6028721ccf
commit 801dd34549
+1 -1
View File
@@ -19,7 +19,7 @@ module.exports = async (ctx) => {
.get();
const item = await Promise.all(
list.map((item) =>
list.slice(0, 10).map((item) =>
ctx.cache.tryGet(item.link, async () => {
const res = await got.get(item.link);
const s = cheerio.load(res.data);