diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2018-10-21 14:25:25 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2018-10-21 14:54:29 +0200 |
commit | 2b6e3fb20f8069a1853873467a4c864997343603 (patch) | |
tree | f8e4eb7076eb4c6ba21989bc6b2bae5c16d02ee7 /src/repository/mod.rs | |
parent | b87da505fae69294fbcb8efe405cfaa30d03ac6b (diff) |
Implement publishing
Diffstat (limited to 'src/repository/mod.rs')
-rw-r--r-- | src/repository/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/repository/mod.rs b/src/repository/mod.rs index fa782c9..84937ce 100644 --- a/src/repository/mod.rs +++ b/src/repository/mod.rs @@ -196,14 +196,14 @@ impl Repository { "10m" } - /// Announce a profile as current + /// Announce a block as current /// - /// Profile identified by IPFS hash. + /// Block identified by IPFS hash. /// /// Lifetime and TTL are _not_ set to the default in the implementation of this function, but /// the IPFS defaults apply (set by the IPFS daemon) /// - pub fn announce_profile<'a>(&'a self, + pub fn announce_block<'a>(&'a self, key: ProfileKey, state: &IPFSHash, lifetime: Option<String>, @@ -212,7 +212,7 @@ impl Repository { { debug!("Announcing profile: key: {key:?}, state: {state:?}, lifetime: {lifetime:?}, ttl: {ttl:?}", key = key, state = state, lifetime = lifetime, ttl = ttl); - ::repository::client::announce_profile(self.client.clone(), key, state, lifetime, ttl) + ::repository::client::announce_block(self.client.clone(), key, state, lifetime, ttl) } pub fn new_profile<'a>(&'a self, |