Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
oconnor663
· 6y ago · 0 comments
IIUC, the point is that the code has been in prod for a year, but the race detector only just now found the bug? But I could be wrong.
Comments
[–]
ernado
6y ago
It is right, race detector is not enabled by default and you should explicitly run tests with it or tell compiler to enable it - it is not compile-time, but run-time.
But still, it detects this error.