Skip to main content

set_global_credential_revocation_store

Function set_global_credential_revocation_store 

Source
pub fn set_global_credential_revocation_store(
    store: Arc<dyn CredentialRevocationStore>,
) -> Result<(), GlobalStoreAlreadySet>
Expand description

Publish the process-global credential-revocation store. Called once at startup; a second call returns an error so the caller can detect a publication race (two services trying to set different stores). The caller MUST propagate this error — ignoring it allows two divergent stores, breaking the one-store invariant.