From 842398c670ab22faf598dbc6f7530b6cc53cfa40 Mon Sep 17 00:00:00 2001 From: Rose Hogenson Date: Thu, 17 Apr 2025 16:35:05 -0700 Subject: Decrease max concurrency --- internal/cp/cp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal') diff --git a/internal/cp/cp.go b/internal/cp/cp.go index 7828787..7ad80f7 100644 --- a/internal/cp/cp.go +++ b/internal/cp/cp.go @@ -216,7 +216,7 @@ func Copy(progress Progress, srcs []FSPath, dstRoot FSPath, force bool) { dstIsDir = err == nil && stat.IsDir() } - const maxConcurrency = 500 + const maxConcurrency = 10 // sem acts as a semaphore to limit the number of concurrent file copies sem := make(chan struct{}, maxConcurrency) c := &copier{ -- cgit v1.3.1