mirror of
https://github.com/genuinetools/reg.git
synced 2024-09-28 11:46:20 -04:00
better throttle
Signed-off-by: Jess Frazelle <acidburn@google.com>
This commit is contained in:
parent
cf4c3ce4bc
commit
4160bcbf52
1 changed files with 1 additions and 1 deletions
|
@ -234,7 +234,7 @@ func createStaticIndex(r *registry.Registry, staticDir, clairURI string) error {
|
|||
go func(repo, tag string, i, j int) {
|
||||
defer wg.Done()
|
||||
|
||||
throttle := time.Tick(time.Duration(time.Duration(i*j) * time.Microsecond))
|
||||
throttle := time.Tick(time.Duration(time.Duration((i+1)*(j+1)) * time.Microsecond))
|
||||
<-throttle
|
||||
|
||||
logrus.Infof("creating vulns.txt for %s:%s", repo, tag)
|
||||
|
|
Loading…
Reference in a new issue