Skip to content

Commit

Permalink
Fixed a loop variable concurrency bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Bruse authored and zond committed Apr 20, 2024
1 parent 3bf1975 commit 6e494bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion go/dataset/dataset.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,8 @@ func (r *metricRunnerReferenceResult) score(m MetricRunner, pool *worker.Pool[an
}

var calculations int32
for distortionIndex, distortion := range r.Input.Distortions {
for distortionIndex, loopDistortion := range r.Input.Distortions {
distortion := loopDistortion
distortionPath, distortionMeanVolume, err := distortion.Provider(referenceMeanVolumePtr)
if err != nil {
return err
Expand Down

0 comments on commit 6e494bc

Please sign in to comment.