up
This commit is contained in:
parent
fa85679320
commit
6eca547638
1 changed files with 1 additions and 3 deletions
|
@ -20,11 +20,9 @@ import (
|
|||
type MockSource struct {
|
||||
configuration.DataSourceCommonCfg `yaml:",inline"`
|
||||
Toto string `yaml:"toto"`
|
||||
logger *log.Entry
|
||||
}
|
||||
|
||||
func (f *MockSource) Configure(cfg []byte, logger *log.Entry) error {
|
||||
f.logger = logger
|
||||
func (f *MockSource) Configure(cfg []byte, commonConfig configuration.DataSourceCommonCfg) error {
|
||||
if err := yaml.UnmarshalStrict(cfg, &f); err != nil {
|
||||
return errors.Wrap(err, "while unmarshaling to reader specific config")
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue