Skip to content

Commit

Permalink
use cid based hash
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed Nov 10, 2023
1 parent 0583c9b commit 10f067f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iroh/src/commands/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use colored::Colorize;
use dialoguer::Confirm;
use futures::{Stream, StreamExt, TryStreamExt};
use indicatif::{HumanBytes, HumanDuration, MultiProgress, ProgressBar, ProgressStyle};
use iroh_base::base32::{fmt, fmt_short};
use iroh_base::base32::fmt_short;
use tokio::io::AsyncReadExt;

use iroh::{
Expand Down Expand Up @@ -655,7 +655,7 @@ async fn fmt_content(doc: &Doc, entry: &Entry, mode: DisplayContentMode) -> Resu
}
DisplayContentMode::HashFull => {
let hash = entry.record().content_hash();
Ok(fmt(hash.as_bytes()))
Ok(hash.to_string())
}
}
}
Expand Down

0 comments on commit 10f067f

Please sign in to comment.