From fd437353ac2a4db907bfaaafda10839d0b9722a5 Mon Sep 17 00:00:00 2001 From: MickaelK Date: Tue, 4 Jun 2024 07:12:39 +1000 Subject: [PATCH] chore (maintain): follow changes in plg_search_sqlitefs --- server/plugin/plg_search_sqlitefts/crawlstate.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/plugin/plg_search_sqlitefts/crawlstate.go b/server/plugin/plg_search_sqlitefts/crawlstate.go index 69f54126..1748a22a 100644 --- a/server/plugin/plg_search_sqlitefts/crawlstate.go +++ b/server/plugin/plg_search_sqlitefts/crawlstate.go @@ -22,7 +22,7 @@ type SearchProcess struct { } func (this *SearchProcess) HintLs(app *App, path string) *SearchIndexer { - id := GenerateID(app) + id := GenerateID(app.Session) // try to find the search indexer among the existing ones this.mu.RLock() @@ -82,7 +82,7 @@ func (this *SearchProcess) HintLs(app *App, path string) *SearchIndexer { } func (this *SearchProcess) HintRm(app *App, path string) { - id := GenerateID(app) + id := GenerateID(app.Session) this.mu.RLock() for i := len(this.idx) - 1; i >= 0; i-- { if id == this.idx[i].Id { @@ -94,7 +94,7 @@ func (this *SearchProcess) HintRm(app *App, path string) { } func (this *SearchProcess) HintFile(app *App, path string) { - id := GenerateID(app) + id := GenerateID(app.Session) this.mu.RLock() for i := len(this.idx) - 1; i >= 0; i-- { if id == this.idx[i].Id {