mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-21 23:00:42 -08:00
feat(fs): optimize scanning performance by direct file access for known paths (#8525)
This commit is contained in:
@@ -4,7 +4,9 @@ import "golang.org/x/sync/semaphore"
|
||||
|
||||
const defaultSize = 5
|
||||
|
||||
func New(parallel int) *semaphore.Weighted {
|
||||
type Weighted = semaphore.Weighted
|
||||
|
||||
func New(parallel int) *Weighted {
|
||||
if parallel == 0 {
|
||||
parallel = defaultSize
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user