mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-12-25 15:09:05 +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