"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
drive: tweak pacer to speed up directory listings and make more reliable
Nick Craig-Wood2119fb43141f
diff --git a/drive/drive.go b/drive/drive.goindex 7314053a5..731db09fe 100644--- a/drive/drive.go+++ b/drive/drive.go@@ -36,8 +36,9 @@ const (timeFormatIn = time.RFC3339timeFormatOut = "2006-01-02T15:04:05.000000000Z07:00"minSleep = 10 * time.Millisecond- maxSleep = 2 * time.Second- decayConstant = 2 // bigger for slower decay, exponential+ maxSleep = 2000 * time.Millisecond+ decayConstant = 0 // bigger for slower decay, exponential+ attackConstant = 0 // bigger for slower attack, exponentialdefaultExtensions = "docx,xlsx,pptx,svg")@@ -291,7 +292,7 @@ func NewFs(name, path string) (fs.Fs, error) {f := &Fs{name: name,root: root,- pacer: pacer.New().SetMinSleep(minSleep).SetMaxSleep(maxSleep).SetDecayConstant(decayConstant),+ pacer: pacer.New().SetMinSleep(minSleep).SetMaxSleep(maxSleep).SetDecayConstant(decayConstant).SetAttackConstant(attackConstant),}// Create a new authorized Drive client.