From 801dd34549cbe91fbfba5636906680222b9df7d3 Mon Sep 17 00:00:00 2001 From: Laam Pui Date: Sun, 10 Jan 2021 17:08:11 +0800 Subject: [PATCH] fix: reduce request items --- lib/routes/netease/open/vip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/netease/open/vip.js b/lib/routes/netease/open/vip.js index cf38726500..7f6122d66d 100644 --- a/lib/routes/netease/open/vip.js +++ b/lib/routes/netease/open/vip.js @@ -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);