mirror of
https://github.com/shankar0123/certctl.git
synced 2026-06-07 17:41:29 +00:00
d27cf3545b
The "run immediately on start" goroutines in 5 scheduler loops did not set the idempotency guard (atomic.Bool), allowing the first ticker tick to spawn a concurrent execution. The race detector caught overlapping goroutines calling the same service method simultaneously. Fix: set the Running flag before spawning the initial goroutine and clear it in the defer, same pattern as ticker-triggered goroutines. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>