mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-02-09 15:27:11 +00:00
19 lines
381 B
Go
19 lines
381 B
Go
package prompb
|
|
|
|
// Reset resets wr.
|
|
func (wr *WriteRequest) Reset() {
|
|
for i := range wr.Timeseries {
|
|
wr.Timeseries[i] = TimeSeries{}
|
|
}
|
|
wr.Timeseries = wr.Timeseries[:0]
|
|
|
|
for i := range wr.labelsPool {
|
|
wr.labelsPool[i] = Label{}
|
|
}
|
|
wr.labelsPool = wr.labelsPool[:0]
|
|
|
|
for i := range wr.samplesPool {
|
|
wr.samplesPool[i] = Sample{}
|
|
}
|
|
wr.samplesPool = wr.samplesPool[:0]
|
|
}
|