1
0
mirror of https://github.com/golang/go synced 2024-11-18 10:54:40 -07:00

go.tools/godoc: move Throttle to package godoc/util

R=bradfitz
CC=golang-dev
https://golang.org/cl/11417043
This commit is contained in:
Andrew Gerrand 2013-07-17 15:23:31 +10:00
parent 8901caa2b3
commit 2392be72c2
2 changed files with 2 additions and 2 deletions

View File

@ -762,7 +762,7 @@ func canonical(w string) string { return strings.ToLower(w) }
//
func NewIndex(dirnames <-chan string, fulltextIndex bool, throttle float64) *Index {
var x Indexer
th := NewThrottle(throttle, 100*time.Millisecond) // run at least 0.1s at a time
th := util.NewThrottle(throttle, 100*time.Millisecond) // run at least 0.1s at a time
// initialize Indexer
// (use some reasonably sized maps to start)

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
package util
import "time"