Refactoring: Remove all *List() functions from CCMetric

This commit is contained in:
Holger Obermaier
2022-02-08 11:23:19 +01:00
parent d98b678399
commit 6d55c376bd
4 changed files with 20 additions and 52 deletions

View File

@@ -57,8 +57,8 @@ func (s *HttpSink) Init(config json.RawMessage) error {
return nil
}
func (s *HttpSink) Write(point lp.CCMetric) error {
_, err := s.encoder.Encode(point)
func (s *HttpSink) Write(m lp.CCMetric) error {
_, err := s.encoder.Encode(m.ToPoint(s.config.MetaAsTags))
return err
}