Skip to content

Commit

Permalink
refactor: DelegationStoreError -> DelegationInsertError
Browse files Browse the repository at this point in the history
  • Loading branch information
matheus23 committed Mar 27, 2024
1 parent 2602110 commit 2ed32e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/delegation/store/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ where
fn insert(
&self,
delegation: Delegation<DID, V, C>,
) -> Result<(), DelegationStoreError<Self::Error>> {
) -> Result<(), DelegationInsertError<Self::Error>> {
self.insert_keyed(delegation.cid()?, delegation)
.map_err(DelegationStoreError::StoreError)
.map_err(DelegationInsertError::StoreError)
}

fn insert_keyed(&self, cid: Cid, delegation: Delegation<DID, V, C>) -> Result<(), Self::Error>;
Expand Down Expand Up @@ -116,7 +116,7 @@ where
}

#[derive(Debug, Error)]
pub enum DelegationStoreError<E> {
pub enum DelegationInsertError<E> {
#[error("Cannot make CID from delegation based on supplied Varsig")]
CannotMakeCid(#[from] libipld_core::error::Error),

Expand Down

0 comments on commit 2ed32e3

Please sign in to comment.