From 10f067fd54ca1d0b253b1b5cc4fc78f605653047 Mon Sep 17 00:00:00 2001 From: dignifiedquire Date: Fri, 10 Nov 2023 15:50:09 +0100 Subject: [PATCH] use cid based hash --- iroh/src/commands/sync.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iroh/src/commands/sync.rs b/iroh/src/commands/sync.rs index 9fdc2cf4fb7..1cc96f89f4c 100644 --- a/iroh/src/commands/sync.rs +++ b/iroh/src/commands/sync.rs @@ -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::{ @@ -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()) } } }