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:
parent
1c1260569b
commit
04124f721a
@ -28,6 +28,7 @@ func Index(path string) {
|
||||
}
|
||||
}
|
||||
|
||||
IndexBacklinks()
|
||||
log.Println("Indexed", Count(), "hyphae")
|
||||
}
|
||||
|
||||
|
1
main.go
1
main.go
@ -37,7 +37,6 @@ func main() {
|
||||
|
||||
// Init the subsystems:
|
||||
hyphae.Index(files.HyphaeDir())
|
||||
hyphae.IndexBacklinks()
|
||||
go hyphae.RunBacklinksConveyor()
|
||||
user.InitUserDatabase()
|
||||
history.Start()
|
||||
|
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user