refactor: pass options struct to fetcher.New
1 file changed, 3 insertions(+), 1 deletion(-)
changed files
M internal/importer/main.go → internal/importer/main.go
@@ -65,7 +65,9 @@ return func(source *config.Source) error { logger := imp.options.Logger.With("name", source.Key) logger.Debug("starting fetcher") - fetcher, err := fetcher.New(source, logger) + fetcher, err := fetcher.New(source, &fetcher.Options{ + Logger: logger, + }) if err != nil { return fault.Wrap(err, fmsg.With("error creating fetcher")) }