diff options
Diffstat (limited to 'internal/server/server.go')
-rw-r--r-- | internal/server/server.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/server/server.go b/internal/server/server.go index 0474e39..28b74b2 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -40,7 +40,6 @@ type Config struct { BaseURL cfg.URL `conf:"default:http://localhost:3000,short:b"` ConfigFile string `conf:"short:c"` LogLevel slog.Level `conf:"default:INFO"` - IndexPath string `conf:"default:data/index.bleve"` SentryDSN string } @@ -87,7 +86,7 @@ func New(runtimeConfig *Config) (*Server, error) { } slog.Debug("loading index") - index, err := search.Open(runtimeConfig.IndexPath) + index, err := search.Open(config.DataPath) slog.Debug("loaded index") if err != nil { log.Fatalf("could not open search index, error: %#v", err) |