Review this Go code (built with Go 1.21) that launches per-shard workers.
There are two distinct concurrency bugs. Identify both.