Skip to content

Commit dc884de

Browse files
committed
Use existing sleep() helper instead of inline setTimeout
1 parent 253b726 commit dc884de

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/publish/confluence/confluence.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,9 +450,9 @@ async function publish(
450450
const res = await tasks[0];
451451
uploadAttachmentsResult.push(res);
452452

453-
// short backoff (milliseconds)
453+
// short backoff between uploads
454454
const t0 = performance.now();
455-
await new Promise<void>(r => setTimeout(r, 800)); // 0.8s
455+
await sleep(800);
456456
trace("[ATTACHMENT] sleptMs", { ms: Math.round(performance.now() - t0) }, LogPrefix.ATTACHMENT);
457457
}
458458
trace(

0 commit comments

Comments
 (0)