Skip to content

Commit

Permalink
[chore] [pkg/translator/jaeger] preallocate slice (#24954)
Browse files Browse the repository at this point in the history
  • Loading branch information
atoulme authored Aug 8, 2023
1 parent eb26ae6 commit 21f9b03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/translator/jaeger/jaegerproto_to_traces.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func regroup(batches []*model.Batch) []*model.Batch {
}
}

var result []*model.Batch
result := make([]*model.Batch, 0, len(registry))
for _, v := range registry {
result = append(result, v)
}
Expand Down

0 comments on commit 21f9b03

Please sign in to comment.