Skip to content

Commit

Permalink
Defer .StopLookups()
Browse files Browse the repository at this point in the history
  • Loading branch information
beautifulentropy committed Mar 1, 2024
1 parent 57bac16 commit 65bac94
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/boulder-ra/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,10 @@ func main() {
apc,
issuerCerts,
)
defer rai.DrainFinalize()
defer func() {
rai.DrainFinalize()
limiterRedis.StopLookups()
}()

policyErr := rai.LoadRateLimitPoliciesFile(c.RA.RateLimitPoliciesFilename)
cmd.FailOnError(policyErr, "Couldn't load rate limit policies file")
Expand Down

0 comments on commit 65bac94

Please sign in to comment.