Reset encoder buffer in nats sink

This commit is contained in:
Lou Knauer 2021-08-20 12:17:46 +02:00
parent e456497956
commit 1cc9491eca

View File

@ -66,7 +66,7 @@ func (s *NatsSink) Write(measurement string, tags map[string]string, fields map[
return err
}
s.client.Publish(s.database, s.buffer.Bytes())
s.buffer.Reset()
}
return nil
}