Skip to content

Commit f840fba

Browse files
authored
Merge branch 'main' into envoy-ha-fix-1
2 parents 378f662 + 84cb3dc commit f840fba

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

operator/identitygc/gc.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,10 @@ func registerGC(p params) {
147147
// CRD mode GC runs in an additional goroutine
148148
gc.mgr.RemoveAllAndWait()
149149
}
150-
gc.rateLimiter.Stop()
150+
// Close the worker pool first to ensure all goroutines complete
151+
// before stopping the rate limiter they depend on
151152
gc.wp.Close()
153+
gc.rateLimiter.Stop()
152154

153155
return nil
154156
},

0 commit comments

Comments
 (0)