Skip to content

Commit

Permalink
chore(cli): print the datamap's entire hex addr
Browse files Browse the repository at this point in the history
  • Loading branch information
RolandSherwin authored and maqi committed Jan 3, 2024
1 parent 7376c3a commit 55a5d42
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions sn_cli/src/subcommands/files/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,13 @@ async fn upload_files(
println!("chunk_manager doesn't have any verified_files, nor any failed_chunks to re-upload.");
}
for (file_name, addr) in chunk_manager.verified_files() {
let hex_addr = addr.to_hex();
if let Some(file_name) = file_name.to_str() {
println!("\"{file_name}\" {addr:?}");
info!("Uploaded {file_name} to {addr:?}");
println!("\"{file_name}\" {hex_addr}");
info!("Uploaded {file_name} to {hex_addr}");
} else {
println!("\"{file_name:?}\" {addr:?}");
info!("Uploaded {file_name:?} to {addr:?}");
println!("\"{file_name:?}\" {hex_addr}");
info!("Uploaded {file_name:?} to {hex_addr}");
}
}
return Ok(());
Expand Down

0 comments on commit 55a5d42

Please sign in to comment.