refactor
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good

This commit is contained in:
2024-12-28 07:55:42 -06:00
parent 5ad7094a3e
commit 53c1ada480

View File

@ -140,13 +140,12 @@ auto ring_file_base::download_chunk(std::size_t chunk,
auto active_download{std::make_shared<download>()};
get_active_downloads()[chunk] = active_download;
auto res = handle_read_buffer(chunk, [&](auto &&buffer) {
auto data_offset{chunk * get_chunk_size()};
auto data_size{
chunk == (total_chunks_ - 1U) ? get_last_chunk_size()
: get_chunk_size(),
};
auto data_offset{chunk * get_chunk_size()};
auto data_size{
chunk == (total_chunks_ - 1U) ? get_last_chunk_size() : get_chunk_size(),
};
auto res = handle_read_buffer(chunk, [&](auto &&buffer) {
auto result{
get_provider().read_file_bytes(get_api_path(), data_size, data_offset,
buffer, stop_requested_),