"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
pacer: add ZeroDelayCalculator
Ovidiu Victor Tatar502226bfc8c6
diff --git a/lib/pacer/pacers.go b/lib/pacer/pacers.goindex d510eea64..94ef86ccb 100644--- a/lib/pacer/pacers.go+++ b/lib/pacer/pacers.go@@ -104,6 +104,15 @@ func (c *Default) Calculate(state State) time.Duration {return sleepTime}+// ZeroDelayCalculator is a Calculator that never delays.+type ZeroDelayCalculator struct {+}++// Calculate takes the current Pacer state and return the wait time until the next try.+func (c *ZeroDelayCalculator) Calculate(state State) time.Duration {+ return 0+}+// AmazonCloudDrive is a specialized pacer for Amazon Drive//// It implements a truncated exponential backoff strategy with randomization.