all repos — searchix @ 3dfbd8dd7212f74622ba4892efb34bf3487da09b

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

feat: switch from errors to fault

Alan Pearce
commit

3dfbd8dd7212f74622ba4892efb34bf3487da09b

parent

e72b060271452e25bbcb2799fc19996ff73689fd

1 file changed, 3 insertions(+), 4 deletions(-)

changed files
M internal/importer/importer.gointernal/importer/importer.go
@@ -7,11 +7,10 @@
"alin.ovh/searchix/internal/index" "alin.ovh/searchix/internal/nix" "alin.ovh/x/log" - "gitlab.com/tozd/go/errors" ) type Processor interface { - Process(context.Context) (<-chan nix.Importable, <-chan errors.E) + Process(context.Context) (<-chan nix.Importable, <-chan error) } func process(
@@ -19,7 +18,7 @@ ctx context.Context,
indexer *index.WriteIndex, processor Processor, logger *log.Logger, -) (bool, errors.E) { +) (bool, error) { wg := sync.WaitGroup{} wg.Add(1)
@@ -29,7 +28,7 @@ wg.Add(1)
iErrs := indexer.Import(ctx, objects) var hadObjectErrors bool - var criticalError errors.E + var criticalError error go func() { for { select {