app/vmagent/remotewrite: return proper value from tssRelabelPool.New

Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/599
This commit is contained in:
Aliaksandr Valialkin 2020-07-14 14:27:50 +03:00
parent 3365f6867b
commit c2b4b9138d

View File

@ -233,6 +233,7 @@ func (rwctx *remoteWriteCtx) Push(tss []prompbmarshal.TimeSeries) {
var tssRelabelPool = &sync.Pool{
New: func() interface{} {
return []prompbmarshal.TimeSeries{}
a := []prompbmarshal.TimeSeries{}
return &a
},
}