Skip to content

Commit

Permalink
Fix: publishing rev-reg should update value of handle, not create new…
Browse files Browse the repository at this point in the history
… one (#509)

Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
  • Loading branch information
Patrik-Stas committed Jul 11, 2022
1 parent 7a7392a commit 8c0771f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libvcx/src/api_lib/api_handle/revocation_registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub async fn create(config: RevocationRegistryConfig) -> VcxResult<u32> {
pub async fn publish(handle: u32, tails_url: &str) -> VcxResult<u32> {
let mut rev_reg = REV_REG_MAP.get_cloned(handle)?;
rev_reg.publish_revocation_primitives(tails_url).await?;
let handle = REV_REG_MAP.add(rev_reg)?;
REV_REG_MAP.insert(handle, rev_reg)?;
Ok(handle)
}

Expand Down

0 comments on commit 8c0771f

Please sign in to comment.