Skip to content

Commit

Permalink
Remove unused.
Browse files Browse the repository at this point in the history
  • Loading branch information
klauspost committed Jun 21, 2024
1 parent 022b03d commit b910bce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/bench/mixed.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ func (g *Mixed) Prepare(ctx context.Context) error {

objs := splitObjs(g.CreateObjects, g.Concurrency)
var mu sync.Mutex
for i, obj := range objs {
go func(i int, obj []struct{}) {
for _, obj := range objs {
go func(obj []struct{}) {
defer wg.Done()
src := g.Source()

Expand Down Expand Up @@ -215,7 +215,7 @@ func (g *Mixed) Prepare(ctx context.Context) error {
g.Dist.addObj(*obj)
g.prepareProgress(float64(len(g.Dist.objects)) / float64(g.CreateObjects))
}
}(i, obj)
}(obj)
}
wg.Wait()
return groupErr
Expand Down

0 comments on commit b910bce

Please sign in to comment.