Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

mailru: attempt to fix throttling by decreasing min sleep to 100ms

Nick Craig-Wood27496fb26d4e
diff --git a/backend/mailru/mailru.go b/backend/mailru/mailru.go
index b1cb6e775..d92a5290c 100644
--- a/backend/mailru/mailru.go
+++ b/backend/mailru/mailru.go
@@ -46,8 +46,8 @@ import (
// Global constants
const (
- minSleepPacer = 10 * time.Millisecond
- maxSleepPacer = 2 * time.Second
+ minSleepPacer = 100 * time.Millisecond
+ maxSleepPacer = 5 * time.Second
decayConstPacer = 2 // bigger for slower decay, exponential
metaExpirySec = 20 * 60 // meta server expiration time
serverExpirySec = 3 * 60 // download server expiration time