Update refs.rs

This commit is contained in:
Mark Robert Henderson 2020-04-18 07:50:17 -04:00
parent 4e33eabccb
commit a2f32f0b59

View File

@ -364,14 +364,6 @@ async fn inner_local<T: IpfsTypes>(ipfs: Ipfs<T>) -> Result<impl Reply, Rejectio
.await
.map_err(StringError::from)?
.into_iter()
.map(|cid| {
if cid.version() != cid::Version::V0 {
Cid::new_v0(cid.hash().to_owned())
} else {
Ok(cid)
}
})
.map(|cid| cid.unwrap())
.map(|cid| cid.to_string())
.map(|refs| Edge {
ok: refs.into(),