diff --git a/config/metric_config.go b/config/metric_config.go index 1b0f234f8a0d6209ed4e1b0c366106b45437dcdf..e3dacdaad691e1cba5cd2ae60e09b6ee42e80fa5 100644 --- a/config/metric_config.go +++ b/config/metric_config.go @@ -17,27 +17,11 @@ package config -import ( - "github.com/creasty/defaults" -) - // This is the config struct for all metrics implementation type MetricConfig struct { Reporters []string `yaml:"reporters" json:"reporters,omitempty"` } -// parse the config from yml -func (c *MetricConfig) UnmarshalYAML(unmarshal func(interface{}) error) error { - if err := defaults.Set(c); err != nil { - return err - } - type plain MetricConfig - if err := unmarshal((*plain)(c)); err != nil { - return err - } - return nil -} - // find the MetricConfig // if it is nil, create a new one func GetMetricConfig() *MetricConfig {