Browse Source

fix: fix slice init length

Signed-off-by: cuishuang <imcusg@gmail.com>
pull/14702/head
cuishuang 3 months ago
parent
commit
2110661121
  1. 2
      storage/remote/queue_manager_test.go

2
storage/remote/queue_manager_test.go

@ -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…
Cancel
Save