Add Flush method to sink interface

This commit is contained in:
Lou Knauer
2021-10-12 13:43:58 +02:00
parent dc4b8d13c2
commit cdc1811576
5 changed files with 21 additions and 2 deletions

View File

@@ -79,6 +79,10 @@ func (s *NatsSink) Write(point lp.MutableMetric) error {
return nil
}
func (s *NatsSink) Flush() error {
return nil
}
func (s *NatsSink) Close() {
log.Print("Closing Nats connection")
if s.client != nil {