all repos — searchix @ ad69a8fe77bd853143457913b62ce7d6f5bc2946

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

perf: use buffered channels for importing

Alan Pearce
commit

ad69a8fe77bd853143457913b62ce7d6f5bc2946

parent

0a9814bb65fafcedbefc9cbd153b3ada8141492a

1 file changed, 1 insertion(+), 1 deletion(-)

changed files
M internal/storage/store.gointernal/storage/store.go
@@ -186,7 +186,7 @@ store *Store,
source *config.Source, ) func(context.Context) (<-chan nix.Importable, <-chan error) { return func(_ context.Context) (<-chan nix.Importable, <-chan error) { - results := make(chan nix.Importable) + results := make(chan nix.Importable, 1) errs := make(chan error) go func() {