mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 05:04:22 +01:00
limit number of goroutines for historic scanning as well (#761)
This commit is contained in:
1 parent
44d7d89e19
commit
801d44a6e4
3 files changed
+13
-7
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user