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

fs/accounting: increase maximum burst size of token bucket

Nick Craig-Wood7d74686698d9
diff --git a/fs/accounting/token_bucket.go b/fs/accounting/token_bucket.go
index 124deda70..e71091ecf 100644
--- a/fs/accounting/token_bucket.go
+++ b/fs/accounting/token_bucket.go
@@ -21,7 +21,7 @@ var (
currLimit fs.BwTimeSlot
)
-const maxBurstSize = 1 * 1024 * 1024 // must be bigger than the biggest request
+const maxBurstSize = 4 * 1024 * 1024 // must be bigger than the biggest request
// make a new empty token bucket with the bandwidth given
func newTokenBucket(bandwidth fs.SizeSuffix) *rate.Limiter {