format and clarify alias type comment

Signed-off-by: glightfoot <glightfoot@rsglab.com>
This commit is contained in:
glightfoot 2021-01-28 14:24:41 -05:00
parent 66a63a8c1f
commit f8bba00868
3 changed files with 11 additions and 11 deletions

View file

@ -24,7 +24,7 @@ type mapperConfigDefaults struct {
HistogramOptions HistogramOptions `yaml:"histogram_options"` HistogramOptions HistogramOptions `yaml:"histogram_options"`
} }
// mapperConfigDefaultsAlias is used to allow deprecated fields // mapperConfigDefaultsAlias is used to unmarshal the yaml config into mapperConfigDefaults and allows deprecated fields
type mapperConfigDefaultsAlias struct { type mapperConfigDefaultsAlias struct {
ObserverType ObserverType `yaml:"observer_type"` ObserverType ObserverType `yaml:"observer_type"`
TimerType ObserverType `yaml:"timer_type,omitempty"` // DEPRECATED - field only present to preserve backwards compatibility in configs TimerType ObserverType `yaml:"timer_type,omitempty"` // DEPRECATED - field only present to preserve backwards compatibility in configs