diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-02-17 20:55:11 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-02-17 20:55:11 -0800 |
| commit | dd9f3a01049bef33046d3728d82b25b67b8533ac (patch) | |
| tree | d5f5d956898b74adb09109c3c2d3fc8b4d62fafb | |
| parent | aa17311063c0303c35db1cd450afe1bd609f7da5 (diff) | |
| download | seaweedfs-dd9f3a01049bef33046d3728d82b25b67b8533ac.tar.xz seaweedfs-dd9f3a01049bef33046d3728d82b25b67b8533ac.zip | |
add sleep between upload retries
| -rw-r--r-- | weed/operation/upload_content.go | 1 |
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 } |
