limit number of goroutines for historic scanning as well (#761)

This commit is contained in:
Zachary Rice authored and GitHub committed 2022-01-07 08:58:47 -06:00
1 parent 44d7d89e19
commit 801d44a6e4
3 files changed
+13 -7

No files matched your search

+2
View File
@@ -17,6 +17,8 @@ type Options struct {
Redact bool
}
const MAXGOROUTINES = 4
func DetectFindings(cfg config.Config, b []byte, filePath string, commit string) []report.Finding {
var findings []report.Finding
linePairs := regexp.MustCompile("\n").FindAllIndex(b, -1)