-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: External db toggle panic #248
Conversation
src/services/identity/local.ts
Outdated
@@ -111,7 +109,7 @@ export class LocalIdentity implements IIdentity { | |||
} | |||
|
|||
async getKey(kid: string) { | |||
return await this.agent.keyManagerGet({ kid }) | |||
return await this.initAgent().keyManagerGet({ kid }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Am I right that it creates new MemoryPrivateKeyStore()
on each get request?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to use OOP mechanics here or composition at least to get rid of copy-paste?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@anikitinDSR add a base Veramo class to avoid repetition can you review
## [2.1.0-develop.17](2.1.0-develop.16...2.1.0-develop.17) (2023-06-07) ### Bug Fixes * External db toggle panic ([#248](#248)) ([a33cd25](a33cd25))
🎉 This PR is included in version 2.1.0-develop.17 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 2.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
No description provided.