aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-02-17 20:55:11 -0800
committerChris Lu <chris.lu@gmail.com>2021-02-17 20:55:11 -0800
commitdd9f3a01049bef33046d3728d82b25b67b8533ac (patch)
treed5f5d956898b74adb09109c3c2d3fc8b4d62fafb
parentaa17311063c0303c35db1cd450afe1bd609f7da5 (diff)
downloadseaweedfs-dd9f3a01049bef33046d3728d82b25b67b8533ac.tar.xz
seaweedfs-dd9f3a01049bef33046d3728d82b25b67b8533ac.zip
add sleep between upload retries
-rw-r--r--weed/operation/upload_content.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/operation/upload_content.go b/weed/operation/upload_content.go
index 7e2a6dcd2..b24514cda 100644
--- a/weed/operation/upload_content.go
+++ b/weed/operation/upload_content.go
@@ -100,6 +100,7 @@ func retriedUploadData(uploadUrl string, filename string, cipher bool, data []by
} else {
glog.Warningf("uploading to %s: %v", uploadUrl, err)
}
+ time.Sleep(time.Millisecond * time.Duration(237 * (i+1)))
}
return
}