diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2021-12-06 20:43:13 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-12-09 11:13:00 +0100 |
commit | 78e0434b653700621157eb4db40e81eea99fa2c5 (patch) | |
tree | e1ceadb8e9641606b104f0dfe026ba2c7895387a | |
parent | ed9c7b7ecfc642756696b744bcb1588e138ca29a (diff) |
Add fn to update profile head
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r-- | lib/src/profile/state.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/src/profile/state.rs b/lib/src/profile/state.rs index 4075b52..33f0bd6 100644 --- a/lib/src/profile/state.rs +++ b/lib/src/profile/state.rs @@ -49,6 +49,11 @@ impl ProfileState { keypair } } + + pub(super) fn update_head(&mut self, cid: cid::Cid) -> Result<()> { + self.profile_head = Some(cid); + Ok(()) // reserved for future use + } } impl std::fmt::Debug for ProfileState { |