fix: should be kilobytes (#2663)

This commit is contained in:
Matthias Seitz
2023-05-13 20:37:07 +02:00
committed by GitHub
parent a5dbbe4187
commit 3402f19c7e
2 changed files with 2 additions and 2 deletions

View File

@ -498,7 +498,7 @@ impl Default for BodiesDownloaderBuilder {
request_limit: 200,
stream_batch_size: 10_000,
// With high block sizes at around 100kb this will be ~4GB of buffered blocks: ~43k
max_buffered_blocks: 4 * 1024 * 1024 * 1024 / 100,
max_buffered_blocks: 4 * 1024 * 1024 * 1024 / 100_000,
concurrent_requests_range: 5..=100,
}
}

View File

@ -130,7 +130,7 @@ impl Default for BodiesConfig {
downloader_request_limit: 200,
downloader_stream_batch_size: 10_000,
// With high block sizes at around 100kb this will be ~4GB of buffered blocks: ~43k
downloader_max_buffered_blocks: 4 * 1024 * 1024 * 1024 / 100,
downloader_max_buffered_blocks: 4 * 1024 * 1024 * 1024 / 100_000,
downloader_min_concurrent_requests: 5,
downloader_max_concurrent_requests: 100,
}