1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-12-05 02:29:54 +00:00

Tidy up indexing routine (a little bit)

This commit is contained in:
Mikhail Chekan 2021-09-05 15:16:07 +08:00
parent 1c1260569b
commit 04124f721a
3 changed files with 1 additions and 2 deletions

View File

@ -28,6 +28,7 @@ func Index(path string) {
}
}
IndexBacklinks()
log.Println("Indexed", Count(), "hyphae")
}

View File

@ -37,7 +37,6 @@ func main() {
// Init the subsystems:
hyphae.Index(files.HyphaeDir())
hyphae.IndexBacklinks()
go hyphae.RunBacklinksConveyor()
user.InitUserDatabase()
history.Start()

View File

@ -94,7 +94,6 @@ func handlerReindex(w http.ResponseWriter, rq *http.Request) {
hyphae.ResetCount()
log.Println("Reindexing hyphae in", files.HyphaeDir())
hyphae.Index(files.HyphaeDir())
log.Println("Indexed", hyphae.Count(), "hyphae")
http.Redirect(w, rq, "/", http.StatusSeeOther)
}