commit df1647d9aeaf462d1c3109cd58be7ac0accb76b8
parent f4e7dd86413c3b36462576490a1a4b716483216f
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Tue, 31 Jan 2023 02:17:38 -0800
add doc
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/cmd/dkfupload/main.go b/cmd/dkfupload/main.go
@@ -183,6 +183,7 @@ func work(i int, wg *sync.WaitGroup, chunksCh chan int64, isLocal, dry bool, max
return err
}
defer resp.Body.Close()
+ // We use teapot status (because why not) to express that we already have the chunk
if resp.StatusCode == http.StatusTeapot {
logrus.Infof("Thread #%03d | server already has chunk #%03d; skip", i, chunkNum)
return nil