add sleep between upload retries

This commit is contained in:
Chris Lu 2021-02-17 20:55:11 -08:00
parent aa17311063
commit dd9f3a0104

View file

@ -100,6 +100,7 @@ func retriedUploadData(uploadUrl string, filename string, cipher bool, data []by
} else { } else {
glog.Warningf("uploading to %s: %v", uploadUrl, err) glog.Warningf("uploading to %s: %v", uploadUrl, err)
} }
time.Sleep(time.Millisecond * time.Duration(237 * (i+1)))
} }
return return
} }