Fix expected size for file uploader.

This commit is contained in:
levlam 2024-07-12 21:26:52 +03:00
parent 72019eab50
commit 706a4336c9

View File

@ -90,6 +90,7 @@ Result<FileLoader::FileInfo> FileUploader::init() {
LOG(DEBUG) << "Init file uploader for " << remote_ << " with offset = " << offset << " and part size = " << part_size;
FileInfo res;
res.size = local_size_;
res.expected_size = expected_size_;
res.is_size_final = local_is_ready_;
res.part_size = part_size;
res.ready_parts = std::move(parts);