mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2025-08-14 22:53:01 +02:00
Use pointer to metrics instead of forwarding full metric
This commit is contained in:
@@ -36,8 +36,8 @@ func (s *HttpSink) Init(config sinkConfig) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *HttpSink) Write(point lp.CCMetric) error {
|
||||
_, err := s.encoder.Encode(point)
|
||||
func (s *HttpSink) Write(point *lp.CCMetric) error {
|
||||
_, err := s.encoder.Encode(*point)
|
||||
return err
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user