mirror of
https://github.com/restic/restic.git
synced 2026-09-18 02:07:58 +00:00
Apply go fix -rangeint ./...
This commit is contained in:
@@ -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