aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2025-04-17 16:35:05 -0700
committerRose Hogenson <rosehogenson@posteo.net>2025-04-17 16:35:05 -0700
commit842398c670ab22faf598dbc6f7530b6cc53cfa40 (patch)
tree5ed159262a08122d309c28c440f99561f9e9032d
parente550f85feee5d768f06c9737d321504f1cc3a31e (diff)
downloadccp-842398c670ab22faf598dbc6f7530b6cc53cfa40.tar.zst
Decrease max concurrency
-rw-r--r--internal/cp/cp.go2
1 files changed, 1 insertions, 1 deletions
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{