mirror of https://github.com/certd/certd
chore:
parent
c53bb7cf67
commit
9d0abe993b
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue