mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-11-10 04:27:25 +01:00
Cleanup
This commit is contained in:
parent
5aa9603c01
commit
778bb62602
@ -177,8 +177,6 @@ func (s *HttpSink) Write(m lp.CCMetric) error {
|
||||
cclog.ComponentError(s.name, "Flush triggered by batch size limit: flush failed:", err)
|
||||
}
|
||||
}()
|
||||
return nil
|
||||
|
||||
} else if s.timerLock.TryLock() {
|
||||
|
||||
// Setup flush timer when flush delay is configured
|
||||
@ -347,6 +345,7 @@ func NewHttpSink(name string, config json.RawMessage) (Sink, error) {
|
||||
|
||||
// Configure influx line protocol encoder
|
||||
s.encoder.SetPrecision(influx.Nanosecond)
|
||||
s.encoderRecordCount = 0
|
||||
s.extended_tag_list = make([]key_value_pair, 0)
|
||||
return s, nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user