mirror of
https://github.com/henrybear327/Proton-API-Bridge.git
synced 2026-06-12 07:45:54 -04:00
18 lines
528 B
Go
18 lines
528 B
Go
package proton_api_bridge
|
|
|
|
var (
|
|
UPLOAD_BLOCK_SIZE = 4 * 1024 * 1024 // 4 MB
|
|
UPLOAD_BATCH_BLOCK_SIZE = 8
|
|
/*
|
|
https://github.com/rclone/rclone/pull/7093#issuecomment-1637024885
|
|
|
|
The idea is that rclone performs buffering / pre-fetching on it's own so
|
|
we don't need to be doing this on our end.
|
|
|
|
If you are not using rclone and instead is directly basing your work on this
|
|
library, then maybe you can increase this value to let the library does
|
|
the buffering work for you!
|
|
*/
|
|
DOWNLOAD_BATCH_BLOCK_SIZE = 1
|
|
)
|