"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
zoho: sleep for 60 seconds if rate limit error received
Nick Craig-Wood3fef8016b5f6
diff --git a/backend/zoho/zoho.go b/backend/zoho/zoho.goindex 1815e9b5f..e4e69353f 100644--- a/backend/zoho/zoho.go+++ b/backend/zoho/zoho.go@@ -289,6 +289,10 @@ func shouldRetry(ctx context.Context, resp *http.Response, err error) (bool, errauthRetry = truefs.Debugf(nil, "Should retry: %v", err)}+ if resp != nil && resp.StatusCode == 429 {+ fs.Errorf(nil, "zoho: rate limit error received, sleeping for 60s: %v", err)+ time.Sleep(60 * time.Second)+ }return authRetry || fserrors.ShouldRetry(err) || fserrors.ShouldRetryHTTP(resp, retryErrorCodes), err}