all repos — searchix @ 0ae74e5f6af61819e8f954960287ea14ec447834

Search engine for NixOS, nix-darwin, home-manager and NUR users

refactor: pass options struct to fetcher.New

Alan Pearce
commit

0ae74e5f6af61819e8f954960287ea14ec447834

parent

4f1db3ca3ae4d7a522834aca55cd619bb4798f5f

1 file changed, 3 insertions(+), 1 deletion(-)

changed files
M internal/importer/main.gointernal/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")) }