mirror of
https://github.com/terorie/od-database-crawler.git
synced 2025-04-19 02:16:43 +00:00
Bump the upload retry interval up to 30s
This commit is contained in:
parent
3fc8837dd7
commit
a2df2972f4
@ -105,7 +105,7 @@ func uploadChunks(websiteId uint64, f *os.File) error {
|
|||||||
for retries := 0; retries < 10; retries++ {
|
for retries := 0; retries < 10; retries++ {
|
||||||
if retries > 0 {
|
if retries > 0 {
|
||||||
// Error occurred, retry upload
|
// Error occurred, retry upload
|
||||||
time.Sleep(5 * time.Second)
|
time.Sleep(30 * time.Second)
|
||||||
}
|
}
|
||||||
|
|
||||||
req, err := http.NewRequest(
|
req, err := http.NewRequest(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user