refactor: use options struct for all arguments to index constructor
1 file changed, 2 insertions(+), 2 deletions(-)
changed files
M cmd/searchix-web/main.go → cmd/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 {