Reset buffer in nats sink

This commit is contained in:
Thomas Roehl 2021-10-04 15:46:51 +02:00
parent 558bbaba59
commit b06572c865

View File

@ -74,7 +74,7 @@ func (s *NatsSink) Write(point lp.MutableMetric) error {
return err
}
s.client.Publish(s.database, s.buffer.Bytes())
s.buffer.Reset()
}
return nil
}