mirror of
https://github.com/restic/restic.git
synced 2026-11-02 05:25:33 +00:00
Apply go fix -rangeint ./...
This commit is contained in:
1 parent
fb36a7f59b
commit
2c169edad4
56 files changed
+91
-91
No files matched your search
@@ -201,7 +201,7 @@ func StreamTrees(
|
||||
// decoding a tree can take quite some time such that this can be both CPU- or IO-bound
|
||||
// one extra worker to handle huge tree blobs
|
||||
workerCount := int(repo.Connections()) + runtime.GOMAXPROCS(0) + 1
|
||||
for i := 0; i < workerCount; i++ {
|
||||
for i := range workerCount {
|
||||
workerLoaderChan := loaderChan
|
||||
if i == 0 {
|
||||
workerLoaderChan = hugeTreeChan
|
||||
|
||||
Reference in new issue
Block a user