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