mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-11-10 04:27:25 +01:00
Reset buffer in nats sink
This commit is contained in:
parent
558bbaba59
commit
b06572c865
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user