commit 6d89666746ff01cd3a7fd41505936bf925e13a74
parent 0faa5bb3f921608f8feaf0fdd3f9895f57e68822
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Fri, 3 Feb 2023 17:44:59 -0800
remove the chunk skip code
Diffstat:
1 file changed, 0 insertions(+), 6 deletions(-)
diff --git a/cmd/dkfdownload/main.go b/cmd/dkfdownload/main.go
@@ -198,12 +198,6 @@ func work(i int, wg *sync.WaitGroup, baseUrl, filedropUUID string, chunksCh chan
start := time.Now()
logrus.Infof("thread #%03d | chunk #%03d", i, chunkNum)
hasToSucceed(func() error {
- partFileName := fmt.Sprintf("part_%d", chunkNum)
- if _, err := os.Stat(filepath.Join(filedropUUID, partFileName)); err == nil {
- logrus.Infof("thread #%03d | chunk #%03d; skip", i, chunkNum)
- return nil
- }
-
start = time.Now()
body := url.Values{}
body.Set("chunk", strconv.FormatInt(chunkNum, 10))