Skip to content
This repository was archived by the owner on Oct 23, 2022. It is now read-only.

remove unimplemented ipns functionalities from Ipfs #384

Merged
merged 6 commits into from
Sep 22, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -639,19 +639,6 @@ impl<Types: IpfsTypes> Ipfs<Types> {
.await
}

/// Publishes an ipld path.
pub async fn publish_ipns(&self, key: &PeerId, path: &IpfsPath) -> Result<IpfsPath, Error> {
self.ipns()
.publish(key, path)
.instrument(self.span.clone())
.await
}

/// Cancel an ipns path.
pub async fn cancel_ipns(&self, key: &PeerId) -> Result<(), Error> {
self.ipns().cancel(key).instrument(self.span.clone()).await
}

pub async fn connect(&self, target: MultiaddrWithPeerId) -> Result<(), Error> {
async move {
let (tx, rx) = oneshot_channel();
Expand Down