Skip to content
Snippets Groups Projects
Commit 05fe4b17 authored by Rangel Reale's avatar Rangel Reale
Browse files

* Return error on MetricSenderFunc

parent 2be64b46
No related branches found
No related tags found
No related merge requests found
......@@ -22,12 +22,11 @@ type MetricSender interface {
}
// The MetricSenderFunc type is an adapter to allow the use of ordinary functions as metric senders
type MetricSenderFunc func(MetricMap)
type MetricSenderFunc func(MetricMap) error
// SendMetrics calls f(m)
func (f MetricSenderFunc) SendMetrics(m MetricMap) error {
f(m)
return nil
return f(m)
}
// MetricAggregator is an object that aggregates statsd metrics.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment