fix: fix slice init length

Signed-off-by: cuishuang <imcusg@gmail.com>
This commit is contained in:
cuishuang 2024-08-21 18:15:25 +08:00
parent 1435c8ae4a
commit 2110661121

View file

@ -930,7 +930,7 @@ func createHistograms(numSamples, numSeries int, floatHistogram bool) ([]record.
}
func createSeriesMetadata(series []record.RefSeries) []record.RefMetadata {
metas := make([]record.RefMetadata, len(series))
metas := make([]record.RefMetadata, 0, len(series))
for _, s := range series {
metas = append(metas, record.RefMetadata{