mirror of
https://github.com/certd/certd.git
synced 2026-04-21 02:20:52 +08:00
chore: 1
This commit is contained in:
@@ -52,7 +52,8 @@ async function retryPromise(fn, attempts, backoff, logger = log) {
|
||||
let aborted = false;
|
||||
|
||||
try {
|
||||
const data = await fn(() => { aborted = true; });
|
||||
const setAbort = () => { aborted = true; }
|
||||
const data = await fn(setAbort);
|
||||
return data;
|
||||
}
|
||||
catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user