Skip to content

Commit 71d5f2b

Browse files
authored
Merge pull request #1601 from 0chain/hotfix/fix-merge
fix merged changes
2 parents 1ae7817 + d4ef688 commit 71d5f2b

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

zboxcore/sdk/downloadworker.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -607,12 +607,6 @@ func (req *DownloadRequest) processDownload() {
607607
hashWg.Done()
608608
}()
609609
}
610-
} else {
611-
hashWg.Add(1)
612-
go func() {
613-
writeData(actualFileHasher, data, req.datashards, int(remainingSize)) //nolint
614-
hashWg.Done()
615-
}()
616610
}
617611

618612
totalWritten, err := writeData(req.fileHandler, data, req.datashards, int(remainingSize))
@@ -660,12 +654,6 @@ func (req *DownloadRequest) processDownload() {
660654
hashWg.Done()
661655
}()
662656
}
663-
} else {
664-
hashWg.Add(1)
665-
go func() {
666-
writeData(actualFileHasher, block.data, req.datashards, int(remainingSize)) //nolint
667-
hashWg.Done()
668-
}()
669657
}
670658

671659
totalWritten, err := writeData(req.fileHandler, block.data, req.datashards, int(remainingSize))

0 commit comments

Comments
 (0)