mirror of
https://github.com/prometheus/prometheus
synced 2024-12-25 16:02:28 +00:00
[TESTS] remote-write: fix slice init length (#14702)
fix: fix slice init length
This commit is contained in:
commit
95b3c49836
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user