forked from TrueCloudLab/lego
Remove conditional around rate limiting
Always limit LE requests to ~18 per second, no matter how many domains are being validated.
This commit is contained in:
parent
0e2937900b
commit
ee0018c855
1 changed files with 1 additions and 4 deletions
|
@ -529,10 +529,7 @@ func (c *Client) chooseSolvers(auth authorization, domain string) map[int]solver
|
|||
func (c *Client) getChallenges(domains []string) ([]authorizationResource, map[string]error) {
|
||||
resc, errc := make(chan authorizationResource), make(chan domainError)
|
||||
|
||||
var delay time.Duration
|
||||
if len(domains) > overallRequestLimit {
|
||||
delay = time.Second / overallRequestLimit
|
||||
}
|
||||
delay := time.Second / overallRequestLimit
|
||||
|
||||
for _, domain := range domains {
|
||||
time.Sleep(delay)
|
||||
|
|
Loading…
Reference in a new issue