chat朋友圈taskpool修改

Signed-off-by: enxue <sunxiaoxiang7@huawei.com>
This commit is contained in:
enxue 2023-09-23 16:19:31 +08:00
parent c42a854326
commit d979e723c6

View File

@ -323,7 +323,7 @@ async function getWebData(url: string): Promise<Array<FriendMoment>> {
jsonObj[i].imageList, jsonObj[i].media, jsonObj[i].mediaPreview);
friendMomentBuckets.push(chatModelTemp);
}
// 设置count计数用来延长方法执行时间方便后续监视性能
// 在TaskPool中模拟耗时操作
let taskCount: number = 0;
for (let i = 0;i < 10000; i++) {
taskCount++;