1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-12-13 05:50:27 +00:00

Merge pull request #94 from chekoopa/index-qol

Tidy up indexing routine (a little bit)
This commit is contained in:
Umar Getagazov 2021-09-05 14:19:14 +07:00 committed by GitHub
commit 44db245c94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)
}