mirror of https://github.com/golang/go.git
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:
parent
8b60613b92
commit
8eaf38cbdd
|
|
@ -337,6 +337,8 @@ func main() {
|
|||
}()
|
||||
}
|
||||
|
||||
// Immediately update metadata.
|
||||
updateMetadata()
|
||||
// Periodically refresh metadata.
|
||||
go refreshMetadataLoop()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue