refactor: use options struct for all arguments to index constructor
1 file changed, 3 insertions(+), 1 deletion(-)
changed files
M internal/importer/main_test.go → internal/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)