Reduce number of workes

10000 open "files" was causing windows to have a stroke
This commit is contained in:
2024-07-01 19:51:16 +02:00
parent fe2839e3fc
commit 357d756a77

View File

@@ -77,7 +77,7 @@ func GetSyncFilesRecursively(input string, output chan string, status chan error
var initial sync.Once
wg.Add(1)
directories := make(chan string, 100000)
workerPool := make(chan struct{}, 10000)
workerPool := make(chan struct{}, 4000)
directories <- input
go func() {