Skip to content

Fix race condition in loop closure

Stan Hu requested to merge sh-fix-race-condition into master

As explained in https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/loopclosure, the evt variable was being modified in the for loop while the Goroutine was trying to access it. This led to a race condition.

Relates to #13 (closed)

Merge request reports