perf: use buffered channels for importing
3 files changed, 3 insertions(+), 3 deletions(-)
M internal/importer/options.go → internal/importer/options.go
@@ -98,7 +98,7 @@ return &i, nil } func (i *OptionIngester) Process(ctx context.Context) (<-chan nix.Importable, <-chan error) { - results := make(chan nix.Importable) + results := make(chan nix.Importable, 1) errs := make(chan error) go func() {
M internal/importer/package.go → internal/importer/package.go
@@ -121,7 +121,7 @@ return l } func (i *PackageIngester) Process(ctx context.Context) (<-chan nix.Importable, <-chan error) { - results := make(chan nix.Importable) + results := make(chan nix.Importable, 1) errs := make(chan error) if i.programs != nil {
M internal/storage/store.go → internal/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() {