fix: nil pointer panic in importer
Alan Pearce alan@alanpearce.eu
Mon, 24 Mar 2025 17:17:34 +0100
1 files changed, 3 insertions(+), 2 deletions(-)
jump to
M cmd/searchix-web/main.go → cmd/searchix-web/main.go
@@ -90,8 +90,9 @@ logger.Fatal("Failed to initialise searchix-web", "error", err) } imp, err := importer.New(cfg, &importer.Options{ - LowMemory: cfg.Importer.LowMemory, - Logger: logger.Named("importer"), + WriteIndex: write, + LowMemory: cfg.Importer.LowMemory, + Logger: logger.Named("importer"), }) if err != nil { logger.Fatal("Failed to create importer", "error", err)