Reduce number of workes
10000 open "files" was causing windows to have a stroke
This commit is contained in:
2
util.go
2
util.go
@@ -77,7 +77,7 @@ func GetSyncFilesRecursively(input string, output chan string, status chan error
|
|||||||
var initial sync.Once
|
var initial sync.Once
|
||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
directories := make(chan string, 100000)
|
directories := make(chan string, 100000)
|
||||||
workerPool := make(chan struct{}, 10000)
|
workerPool := make(chan struct{}, 4000)
|
||||||
directories <- input
|
directories <- input
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
|
Reference in New Issue
Block a user