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:
parent
8901caa2b3
commit
2392be72c2
@ -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)
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user