diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2018-10-21 14:28:11 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2018-10-21 14:54:29 +0200 |
commit | 1c4e0ad65f66fb0bf1f42f834092eb41ebb25d36 (patch) | |
tree | eabdac1195bb8059d5a76b9144557dffafe4d4e1 /src/repository/client.rs | |
parent | d3c2dbbc5ff8eb9e8d3df3d45675c9cada07dc26 (diff) |
Fix typo
Diffstat (limited to 'src/repository/client.rs')
-rw-r--r-- | src/repository/client.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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)) } |