Skip to content

Commit

Permalink
fix: bump osv max concurrent requests (#1290)
Browse files Browse the repository at this point in the history
The current `maxConcurrentRequests` setting is insufficient for
container scanning, where one scan may report more than a thousand
vulnerabilities. Bump it up to 1000 to fix it.
  • Loading branch information
hogo6002 authored Oct 1, 2024
1 parent a20e520 commit c080496
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/osv/osv.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const (
// maxQueriesPerRequest splits up querybatch into multiple requests if
// number of queries exceed this number
maxQueriesPerRequest = 1000
maxConcurrentRequests = 25
maxConcurrentRequests = 1000
maxRetryAttempts = 4
// jitterMultiplier is multiplied to the retry delay multiplied by rand(0, 1.0)
jitterMultiplier = 2
Expand Down

0 comments on commit c080496

Please sign in to comment.