Skip to content

Commit

Permalink
added remove_actor fn (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
organizedgrime authored Jun 5, 2024
1 parent 36be8d6 commit 4428b3f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/filesystem/drive/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,19 @@ impl Drive {
Ok(())
}

/// Marks the key with the matching actor id as historical. Requires that the corresponding key
/// not be protected. Requires that the current key be an owner.
pub async fn remove_key(
&self,
current_key: &SigningKey,
removal_id: &ActorId,
) -> Result<(), DriveAccessError> {
let mut inner_write = self.inner.write().await;
inner_write
.access_mut()
.remove_actor(current_key, removal_id)?;
Ok(())
}
/// If the caller knows the [`PermanentId`] of a directory, they can retrieve a handle on it
/// directly. Generally users will traverse the filesystem themselves to get this information,
/// but that can be a costly operation. This allows the external cacheing of permanent IDs to
Expand Down

0 comments on commit 4428b3f

Please sign in to comment.