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 6d77bfae4f
commit b442a42d8e

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
},
}