Merge branch 'acquisition-refactoring' of github.com:crowdsecurity/crowdsec into acquisition-refactoring
This commit is contained in:
commit
fa85679320
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,6 @@ func (f *FileSource) SupportedDSN() []string {
|
|||
}
|
||||
|
||||
func (f *FileSource) Configure(Config []byte, logger *log.Entry) error {
|
||||
f.config.SetDefaults()
|
||||
fileConfig := FileConfiguration{}
|
||||
f.logger = logger
|
||||
f.watchedDirectories = make(map[string]bool)
|
||||
|
@ -61,6 +60,7 @@ func (f *FileSource) Configure(Config []byte, logger *log.Entry) error {
|
|||
return fmt.Errorf("no filename or filenames configuration provided")
|
||||
}
|
||||
f.config = fileConfig
|
||||
f.config.SetDefaults()
|
||||
f.watcher, err = fsnotify.NewWatcher()
|
||||
if err != nil {
|
||||
return errors.Wrapf(err, "Could not create fsnotify watcher")
|
||||
|
|
Loading…
Reference in a new issue