all repos — searchix @ 0fb48cf6dd934778584120ebbc9e568c8b80b80e

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

fix: nil pointer panic in importer
Alan Pearce alan@alanpearce.eu
Mon, 24 Mar 2025 17:17:34 +0100
commit

0fb48cf6dd934778584120ebbc9e568c8b80b80e

parent

149a01bff8de5687fa2fa59f02085e8138ff7667

1 files changed, 3 insertions(+), 2 deletions(-)

jump to
M cmd/searchix-web/main.gocmd/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)