all repos — searchix @ 495994761bc04fd9b46e65e389e8b2cda28f1020

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

refactor: use options struct for all arguments to index constructor

Alan Pearce
commit

495994761bc04fd9b46e65e389e8b2cda28f1020

parent

450ff2d51460c2f1e8b0679726d3a26cd8762359

1 file changed, 3 insertions(+), 1 deletion(-)

changed files
M internal/importer/main_test.gointernal/importer/main_test.go
@@ -20,10 +20,12 @@ b.Fatal(err)
} logger := log.Configure(false) - _, write, _, err := index.OpenOrCreate(tmp, false, &index.Options{ + _, write, _, err := index.OpenOrCreate(&index.Options{ + Force: false, LowMemory: true, BatchSize: cfg.Importer.BatchSize, Logger: logger.Named("index"), + Root: tmp, }) if err != nil { b.Fatal(err)