cmd/godoc: fix indexing

Use the flag.

Thanks to Travis Cline.

Fixes golang/go#6233

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/13284044
This commit is contained in:
Brad Fitzpatrick 2013-08-27 15:16:31 -07:00
parent e08d89f3ed
commit 6f6897428a
1 changed files with 1 additions and 0 deletions

View File

@ -221,6 +221,7 @@ func main() {
corpus.Verbose = *verbose corpus.Verbose = *verbose
corpus.IndexEnabled = *indexEnabled && httpMode corpus.IndexEnabled = *indexEnabled && httpMode
corpus.IndexFiles = *indexFiles corpus.IndexFiles = *indexFiles
corpus.IndexThrottle = *indexThrottle
if *writeIndex { if *writeIndex {
corpus.IndexThrottle = 1.0 corpus.IndexThrottle = 1.0
} }