exposing properly on API side

This commit is contained in:
saresend 2020-03-23 11:30:04 -07:00
parent d6e159c4de
commit fe2a51b616

View File

@ -313,11 +313,8 @@ impl<Types: IpfsTypes> Ipfs<Types> {
}
/// Pins a given Cid
pub async fn pin_block(&mut self, cid: IpfsPath) -> Result<(), Error> {
Ok(self
.dag
.pin(self.identity().await?.0.into_peer_id(), cid)
.await?)
pub async fn pin_block(&mut self, path: IpfsPath) -> Result<(), Error> {
Ok(self.dag.pin(path).await?)
}
/// Puts an ipld dag node into the ipfs repo.