mirror of
https://github.com/luxfi/dex.git
synced 2026-09-24 00:26:31 +00:00
atomic.AddUint64 already stores the incremented value. The plain write back on the next line raced with concurrent AddOrder goroutines, causing duplicate order IDs under load (detected by -race).