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

This commit is contained in:
2024-12-28 09:42:55 -06:00
parent fd18fdd8b8
commit d81be88d8d
2 changed files with 4 additions and 5 deletions

View File

@ -266,9 +266,6 @@ void direct_open_file::reader_thread() {
chunk_lock.unlock();
download_chunk(next_chunk, true);
chunk_lock.lock();
check_and_wait();
}
event_system::instance().raise<download_end>(get_api_path(), "direct",

View File

@ -181,8 +181,10 @@ auto ring_buffer_open_file::download_chunk(std::size_t chunk,
};
unlock_and_notify();
auto res = get_provider().read_file_bytes(
get_api_path(), data_size, data_offset, buffer, stop_requested_);
auto res{
get_provider().read_file_bytes(get_api_path(), data_size, data_offset,
buffer, stop_requested_),
};
chunk_lock.lock();
if (chunk < ring_begin_ || chunk > ring_end_) {