refactor(importer): use interfaces, not generics
1 file changed, 1 insertion(+), 7 deletions(-)
changed files
M cmd/searchix-web/ingest.go → cmd/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)) }