From dd9f3a01049bef33046d3728d82b25b67b8533ac Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Wed, 17 Feb 2021 20:55:11 -0800 Subject: [PATCH] add sleep between upload retries --- weed/operation/upload_content.go | 1 + 1 file changed, 1 insertion(+) 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 }