app/vmagent/remotewrite: do not reset empty relabelCtx

This commit is contained in:
Aliaksandr Valialkin 2020-03-03 15:00:52 +02:00
parent 02b55c72dc
commit c31d640eb9

View file

@ -106,8 +106,10 @@ func Push(wr *prompbmarshal.WriteRequest) {
for _, rwctx := range rwctxs { for _, rwctx := range rwctxs {
rwctx.Push(tssBlock) rwctx.Push(tssBlock)
} }
if rctx != nil {
rctx.reset() rctx.reset()
} }
}
if rctx != nil { if rctx != nil {
putRelabelCtx(rctx) putRelabelCtx(rctx)
} }