Skip to content

Commit fd2c103

Browse files
committed
query NVD every 10s
1 parent f1b76f8 commit fd2c103

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/vulnloader/nvdloader/loader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func (l *loader) DownloadFeedsToPath(outputDir string) error {
9595
// With an API key, it is roughly one call every 0.6 seconds.
9696
// We'll play it safe and do one call every 3 seconds.
9797
// As of writing there are ~216,000 vulnerabilities, so this whole process should take ~5.4 minutes.
98-
time.Sleep(3 * time.Second)
98+
time.Sleep(10 * time.Second)
9999

100100
startIdx += apiResp.ResultsPerPage
101101
apiResp, err = query(fmt.Sprintf(urlFmt, startIdx))

0 commit comments

Comments
 (0)