all repos — searchix @ 08a05b653047f4b45d1a4213e0af94b3dda1d4e0

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

refactor(importer): use interfaces, not generics

Alan Pearce
commit

08a05b653047f4b45d1a4213e0af94b3dda1d4e0

parent

9327a79febcce1056f2935918a947adb6f80a5c8

1 file changed, 1 insertion(+), 7 deletions(-)

changed files
M cmd/searchix-web/ingest.gocmd/searchix-web/ingest.go
@@ -83,13 +83,7 @@ }
if !exists || opts.Reindex { for _, source := range cfg.Importer.Sources { - hadErrors, err := importer.ImportSource( - ctx, - logger.Named("importer"), - store, - source, - write, - ) + hadErrors, err := imp.IndexSource(ctx, source) if err != nil { return fault.Wrap(err, fmsg.Withf("Failed to import source %s", source.Name)) }