We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
did
1 parent 5419ad9 commit 3ad5e3dCopy full SHA for 3ad5e3d
producer/src/did_document.rs
@@ -69,10 +69,13 @@ impl SecretManager {
69
70
// Try to retrieve from cache first
71
let core_document: Option<CoreDocument> = match &mut self.cache {
72
- Some(cache) => {
73
- let did = CoreDID::parse(self.did.as_ref().expect("externally managed `DID` not specified"))?;
74
- cache.retrieve(&did)
75
- }
+ Some(cache) => match &self.did {
+ Some(did) => {
+ let did = CoreDID::parse(did)?;
+ cache.retrieve(&did)
76
+ }
77
+ None => None,
78
+ },
79
None => None,
80
};
81
0 commit comments