From 65bac94e8ddc01726dc6915d00affde29ca00386 Mon Sep 17 00:00:00 2001 From: Samantha Date: Fri, 1 Mar 2024 12:27:19 -0500 Subject: [PATCH] Defer .StopLookups() --- cmd/boulder-ra/main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/boulder-ra/main.go b/cmd/boulder-ra/main.go index d844fb4a4e50..84048c24ff4f 100644 --- a/cmd/boulder-ra/main.go +++ b/cmd/boulder-ra/main.go @@ -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")