Commit 05fe4b17 authored by Rangel Reale's avatar Rangel Reale

* Return error on MetricSenderFunc

parent 2be64b46
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment