From c62034fbc37b6aefb47f52ae3875c6a315f3b495 Mon Sep 17 00:00:00 2001 From: Haley Wang Date: Wed, 13 Nov 2024 22:47:51 +0800 Subject: [PATCH] test --- lib/prompbmarshal/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/prompbmarshal/util.go b/lib/prompbmarshal/util.go index eb281fed1..c43eff996 100644 --- a/lib/prompbmarshal/util.go +++ b/lib/prompbmarshal/util.go @@ -27,7 +27,7 @@ func (wr *WriteRequest) Reset() { // ResetTimeSeries clears all the GC references from tss and returns an empty tss ready for further use. func ResetTimeSeries(tss []TimeSeries) []TimeSeries { clear(tss) - return tss[:0] + return make([]TimeSeries, 0) } // MustParsePromMetrics parses metrics in Prometheus text exposition format from s and returns them.