Skip to content

Commit

Permalink
feat: refactor conformation
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonPaulGithub committed Mar 11, 2024
1 parent 92976ae commit 08d686a
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions sn_cli/src/subcommands/acc_packet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -661,14 +661,16 @@ impl AccountPacket {
options: FilesUploadOptions,
) -> Result<Folders> {
let files_api = FilesApi::build(self.client.clone(), self.wallet_dir.clone())?;
let chunk_manager = ChunkManager::new(&self.tracking_info_dir.clone());
let mut chunk_manager = ChunkManager::new(&self.tracking_info_dir.clone());

let total_files = chunk_manager.chunk_with_iter(
self.iter_only_files(),
true,
true, //todo - can't find this equivalent value here.
)?;

IterativeUploader::new(chunk_manager, files_api)
.iterate_upload(
self.iter_only_files(),
self.files_dir.clone(),
options.clone(),
)
.iterate_upload(total_files, self.files_dir.clone(), options.clone())
.await?;

// Let's make the storage payment for Folders
Expand Down

0 comments on commit 08d686a

Please sign in to comment.