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, 2 insertions(+), 2 deletions(-)

changed files
M cmd/searchix-web/main.gocmd/searchix-web/main.go
@@ -108,12 +108,12 @@ }
defer root.Close() read, write, exists, err := index.OpenOrCreate( - root, - *replace, &index.Options{ + Force: *replace, LowMemory: cfg.Importer.LowMemory, BatchSize: cfg.Importer.BatchSize, Logger: logger.Named("index"), + Root: root, }, ) if err != nil {