mirror of
https://github.com/prometheus/prometheus
synced 2026-05-01 07:30:30 +08:00
fix: fix slice init length
Signed-off-by: huochexizhan <huochexizhan@outlook.com>
This commit is contained in:
@@ -1556,7 +1556,7 @@ func (sl *scrapeLoop) append(app storage.Appender, b []byte, contentType string,
|
||||
metadataChanged bool
|
||||
)
|
||||
|
||||
exemplars := make([]exemplar.Exemplar, 1)
|
||||
exemplars := make([]exemplar.Exemplar, 0, 1)
|
||||
|
||||
// updateMetadata updates the current iteration's metadata object and the
|
||||
// metadataChanged value if we have metadata in the scrape cache AND the
|
||||
|
||||
Reference in New Issue
Block a user