pull/361/head
xiaojunnuo 2025-03-25 11:14:28 +08:00
parent c7f31337ce
commit 3bded6fdcc
1 changed files with 1 additions and 1 deletions

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);