mirror of
https://github.com/shankar0123/certctl.git
synced 2026-06-08 11:38:55 +00:00
802d699835
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>