summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2018-10-21 14:28:11 +0200
committerMatthias Beyer <mail@beyermatthias.de>2018-10-21 14:54:29 +0200
commit1c4e0ad65f66fb0bf1f42f834092eb41ebb25d36 (patch)
treeeabdac1195bb8059d5a76b9144557dffafe4d4e1
parentd3c2dbbc5ff8eb9e8d3df3d45675c9cada07dc26 (diff)
Fix typo
-rw-r--r--src/main.rs2
-rw-r--r--src/repository/client.rs4
-rw-r--r--src/repository/mod.rs4
3 files changed, 5 insertions, 5 deletions
diff --git a/src/main.rs b/src/main.rs
index 8ad9b3b..3d0fd88 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -808,7 +808,7 @@ fn main() {
.get_key_id_from_key_name(publish_key_name.clone())
.and_then(move |key_id| {
let key_id = key_id.into();
- repo2.deref_ipfs_hash(&key_id).map(|ipfs_hash| (key_id, ipfs_hash))
+ repo2.deref_ipns_hash(&key_id).map(|ipfs_hash| (key_id, ipfs_hash))
})
.and_then(move |(key_id, ipfs_hash)| {
repo.new_text_post(key_id, ipfs_hash, text, Some(time))
diff --git a/src/repository/client.rs b/src/repository/client.rs
index 284d052..0273097 100644
--- a/src/repository/client.rs
+++ b/src/repository/client.rs
@@ -21,7 +21,7 @@ use types::util::Timestamp;
use repository::{ProfileName, ProfileKey};
use version::protocol_version;
-pub fn deref_ipfs_hash(client: Arc<IpfsClient>,
+pub fn deref_ipns_hash(client: Arc<IpfsClient>,
hash: &IPNSHash)
-> impl Future<Item = IPFSHash, Error = Error>
{
@@ -75,7 +75,7 @@ pub fn get_key_id_from_key_name(client: Arc<IpfsClient>, name: ProfileName)
pub fn resolve_latest_block(client: Arc<IpfsClient>, hash: &IPNSHash)
-> impl Future<Item = Block, Error = Error>
{
- deref_ipfs_hash(client.clone(), hash)
+ deref_ipns_hash(client.clone(), hash)
.map_err(Error::from)
.and_then(|ipfs_hash| resolve_block(client, &ipfs_hash))
}
diff --git a/src/repository/mod.rs b/src/repository/mod.rs
index d829574..d6b4c6b 100644
--- a/src/repository/mod.rs
+++ b/src/repository/mod.rs
@@ -259,10 +259,10 @@ impl Repository {
::repository::client::get_key_id_from_key_name(self.client.clone(), name)
}
- pub fn deref_ipfs_hash<'a>(&'a self, hash: &IPNSHash)
+ pub fn deref_ipns_hash<'a>(&'a self, hash: &IPNSHash)
-> impl Future<Item = IPFSHash, Error = Error>
{
- ::repository::client::deref_ipfs_hash(self.client.clone(), hash)
+ ::repository::client::deref_ipns_hash(self.client.clone(), hash)
}
}