mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2024-12-13 22:00:27 +00:00
Merge pull request #94 from chekoopa/index-qol
Tidy up indexing routine (a little bit)
This commit is contained in:
commit
44db245c94
@ -28,6 +28,7 @@ func Index(path string) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
IndexBacklinks()
|
||||||
log.Println("Indexed", Count(), "hyphae")
|
log.Println("Indexed", Count(), "hyphae")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
1
main.go
1
main.go
@ -37,7 +37,6 @@ func main() {
|
|||||||
|
|
||||||
// Init the subsystems:
|
// Init the subsystems:
|
||||||
hyphae.Index(files.HyphaeDir())
|
hyphae.Index(files.HyphaeDir())
|
||||||
hyphae.IndexBacklinks()
|
|
||||||
go hyphae.RunBacklinksConveyor()
|
go hyphae.RunBacklinksConveyor()
|
||||||
user.InitUserDatabase()
|
user.InitUserDatabase()
|
||||||
history.Start()
|
history.Start()
|
||||||
|
@ -94,7 +94,6 @@ func handlerReindex(w http.ResponseWriter, rq *http.Request) {
|
|||||||
hyphae.ResetCount()
|
hyphae.ResetCount()
|
||||||
log.Println("Reindexing hyphae in", files.HyphaeDir())
|
log.Println("Reindexing hyphae in", files.HyphaeDir())
|
||||||
hyphae.Index(files.HyphaeDir())
|
hyphae.Index(files.HyphaeDir())
|
||||||
log.Println("Indexed", hyphae.Count(), "hyphae")
|
|
||||||
http.Redirect(w, rq, "/", http.StatusSeeOther)
|
http.Redirect(w, rq, "/", http.StatusSeeOther)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user