From 357d756a77ce0d7144c253d62cd5e12b7ab14207 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Majdand=C5=BEi=C4=87?= Date: Mon, 1 Jul 2024 19:51:16 +0200 Subject: [PATCH] Reduce number of workes 10000 open "files" was causing windows to have a stroke --- util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.go b/util.go index f8c74a8..ba760b8 100644 --- a/util.go +++ b/util.go @@ -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() {