This commit is contained in:
xiaojunnuo
2025-03-25 11:14:28 +08:00
parent c7f31337ce
commit 3bded6fdcc

View File

@@ -62,7 +62,7 @@ async function retryPromise(fn, attempts, backoff) {
log(`Promise rejected: ${e.message}`);
const duration = backoff.duration();
log(`attempt #${backoff.attempts}, ${duration}ms 后重试: ${e.message}`);
log(`Promise rejected attempt #${backoff.attempts}, ${duration}ms 后重试: ${e.message}`);
await new Promise((resolve) => { setTimeout(resolve, duration); });
return retryPromise(fn, attempts, backoff);