Skip to content

Commit 855956f

Browse files
authored
Fix indefinite block when Config struct is initialized separately (#1020)
Signed-off-by: egibs <20933572+egibs@users.noreply.github.com>
1 parent 1bb5111 commit 855956f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/action/scan.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ func scanSinglePath(ctx context.Context, c malcontent.Config, path string, ruleF
158158
}
159159

160160
initializeOnce.Do(func() {
161-
scannerPool = pool.NewScannerPool(yrs, c.Concurrency)
161+
scannerPool = pool.NewScannerPool(yrs, getMaxConcurrency(c.Concurrency))
162162
})
163163

164164
scanner := scannerPool.Get()

0 commit comments

Comments
 (0)