Skip to content

Commit

Permalink
Get new LE account if user hits rate limits (#1134)
Browse files Browse the repository at this point in the history
Fixes #1122
  • Loading branch information
tamalsaha committed Jun 13, 2018
1 parent 7d8f322 commit b7e490a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apis/voyager/v1beta1/diff.go
Expand Up @@ -235,7 +235,7 @@ func (c Certificate) ShouldRenew(crt *x509.Certificate) bool {
func (c Certificate) IsRateLimited() bool {
for _, cond := range c.Status.Conditions {
if cond.Type == CertificateRateLimited {
return time.Now().Add(-65 * time.Minute).Before(cond.LastUpdateTime.Time)
return time.Now().Add(-60 * time.Minute).Before(cond.LastUpdateTime.Time)
}
}
return false
Expand Down

0 comments on commit b7e490a

Please sign in to comment.