1
0
mirror of https://github.com/golang/go synced 2024-11-24 23:47:55 -07:00

godoc: update metadata upon launch

Without this change it's possible to launch godoc,
immediately GET /, and see a directory listing instead of root.html

R=gri
CC=golang-dev
https://golang.org/cl/5575054
This commit is contained in:
Andrew Gerrand 2012-01-25 11:56:31 +11:00
parent 8b60613b92
commit 8eaf38cbdd

View File

@ -337,6 +337,8 @@ func main() {
}()
}
// Immediately update metadata.
updateMetadata()
// Periodically refresh metadata.
go refreshMetadataLoop()