// retry a failed capture with backoff
export async function retryCapture(id: string) {
+ const delays = [250, 1000, 4000];
+ for (const ms of delays) {
+ const ok = await capture(id);
+ if (ok) return ok;
+ await sleep(ms);
+ }
}
ok edit settled, 1 file, +6
ok published to everyone on this branch