Skip to content

Commit

Permalink
Remove more unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
jprenken committed Dec 19, 2024
1 parent 66f473b commit 5553130
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions ra/ra.go
Original file line number Diff line number Diff line change
Expand Up @@ -1068,11 +1068,6 @@ func (ra *RegistrationAuthorityImpl) issueCertificateOuter(
// errors from this function to the Subscriber, spends against these limit are
// best effort.
func (ra *RegistrationAuthorityImpl) countCertificateIssued(ctx context.Context, regId int64, orderDomains []string, isRenewal bool) {
if ra.limiter == nil || ra.txnBuilder == nil {
// Limiter is disabled.
return
}

var transactions []ratelimits.Transaction
if !isRenewal {
txns, err := ra.txnBuilder.CertificatesPerDomainSpendOnlyTransactions(regId, orderDomains)
Expand Down Expand Up @@ -1427,11 +1422,6 @@ func (ra *RegistrationAuthorityImpl) recordValidation(ctx context.Context, authI
// countFailedValidations increments the FailedAuthorizationsPerDomainPerAccount limit.
// and the FailedAuthorizationsForPausingPerDomainPerAccountTransaction limit.
func (ra *RegistrationAuthorityImpl) countFailedValidations(ctx context.Context, regId int64, ident identifier.ACMEIdentifier) error {
if ra.limiter == nil || ra.txnBuilder == nil {
// Limiter is disabled.
return nil
}

txn, err := ra.txnBuilder.FailedAuthorizationsPerDomainPerAccountSpendOnlyTransaction(regId, ident.Value)
if err != nil {
return fmt.Errorf("building rate limit transaction for the %s rate limit: %w", ratelimits.FailedAuthorizationsPerDomainPerAccount, err)
Expand Down

0 comments on commit 5553130

Please sign in to comment.