Skip to content

Commit

Permalink
fix(cli): files should be chunked before checking if the chunks are e…
Browse files Browse the repository at this point in the history
…mpty
  • Loading branch information
RolandSherwin authored and jacderida committed Mar 26, 2024
1 parent 9fc56fb commit 5556bbb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sn_cli/src/subcommands/files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,8 @@ pub async fn chunks_to_upload_with_iter(
batch_size: usize,
make_data_public: bool,
) -> Result<Vec<(XorName, PathBuf)>> {
chunk_manager.chunk_with_iter(entries_iter, read_cache, make_data_public)?;
let chunks_to_upload = if chunk_manager.is_chunks_empty() {
chunk_manager.chunk_with_iter(entries_iter, read_cache, make_data_public)?;

let chunks = chunk_manager.get_chunks();

let failed_chunks = files_api
Expand Down

0 comments on commit 5556bbb

Please sign in to comment.