exposing properly on API side
This commit is contained in:
parent
d6e159c4de
commit
fe2a51b616
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user