Signed-off-by: Jess Frazelle <acidburn@google.com>
This commit is contained in:
Jess Frazelle 2017-03-04 21:41:21 -08:00
parent ba1c370d40
commit 0ce468721d
No known key found for this signature in database
GPG key ID: 18F3685C0022BFF3

View file

@ -301,6 +301,9 @@ func createStaticIndex(r *registry.Registry, staticDir, clairURI string) error {
go func(repo, tag string) {
defer wg.Done()
throttle := time.Tick(time.Duration(1e6/int(3)) * time.Microsecond)
<-throttle
logrus.Infof("creating vulns.txt for %s:%s", repo, tag)
if err := createVulnStaticPage(r, staticDir, clairURI, repo, tag); err != nil {