mirror of
https://github.com/certd/certd.git
synced 2026-04-24 04:17:25 +08:00
perf: 优化申请证书最大超时时长
This commit is contained in:
@@ -601,7 +601,10 @@ class AcmeClient {
|
|||||||
};
|
};
|
||||||
|
|
||||||
this.log(`[${d}] Waiting for valid status (等待valid状态): ${item.url}`, JSON.stringify(this.backoffOpts));
|
this.log(`[${d}] Waiting for valid status (等待valid状态): ${item.url}`, JSON.stringify(this.backoffOpts));
|
||||||
return util.retry(verifyFn, this.backoffOpts);
|
const log = (...args)=>{
|
||||||
|
this.logger.info(...args)
|
||||||
|
}
|
||||||
|
return util.retry(verifyFn, this.backoffOpts,log);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ export class AcmeService {
|
|||||||
externalAccountBinding: this.eab,
|
externalAccountBinding: this.eab,
|
||||||
backoffAttempts: this.options.maxCheckRetryCount || 20,
|
backoffAttempts: this.options.maxCheckRetryCount || 20,
|
||||||
backoffMin: 5000,
|
backoffMin: 5000,
|
||||||
backoffMax: 1000*1000,
|
backoffMax: 30*1000,
|
||||||
urlMapping,
|
urlMapping,
|
||||||
signal: this.options.signal,
|
signal: this.options.signal,
|
||||||
logger: this.logger,
|
logger: this.logger,
|
||||||
|
|||||||
Reference in New Issue
Block a user