mirror of
https://github.com/certd/certd.git
synced 2026-04-24 12:27:25 +08:00
chore:
This commit is contained in:
@@ -225,7 +225,7 @@ export default async (client, userOpts) => {
|
|||||||
log(`开始第${j}个任务`);
|
log(`开始第${j}个任务`);
|
||||||
results.push(task());
|
results.push(task());
|
||||||
// eslint-disable-next-line no-await-in-loop
|
// eslint-disable-next-line no-await-in-loop
|
||||||
log(`wait ${waitTime}s`)
|
log(`wait ${Math.floor(waitTime/1000)}s`)
|
||||||
await wait(waitTime);
|
await wait(waitTime);
|
||||||
}
|
}
|
||||||
return Promise.all(results);
|
return Promise.all(results);
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
export default function (timeout: number) {
|
export default function (timeout: number) {
|
||||||
return new Promise((resolve) => {
|
return new Promise(resolve => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
resolve({});
|
resolve({});
|
||||||
}, timeout);
|
}, timeout);
|
||||||
|
|||||||
Reference in New Issue
Block a user