From 789d0079f84017ddafad763ffba9aadbcd6aa6da Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 9 Jun 2024 15:26:17 +0200 Subject: refactor: use a struct to configure index options --- cmd/searchix-web/main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cmd/searchix-web') diff --git a/cmd/searchix-web/main.go b/cmd/searchix-web/main.go index c9ba2d6..5ece329 100644 --- a/cmd/searchix-web/main.go +++ b/cmd/searchix-web/main.go @@ -55,7 +55,10 @@ func main() { log.Fatalf("Failed to initialise searchix: %v", err) } - err = s.SetupIndex(*update, *replace) + err = s.SetupIndex(&searchix.IndexOptions{ + Update: *update, + Replace: *replace, + }) if err != nil { log.Fatalf("Failed to setup index: %v", err) } -- cgit 1.4.1