Skip to content
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

Merged
merged 4 commits into from
Jun 7, 2023
Merged

fix: External db toggle panic #248

merged 4 commits into from
Jun 7, 2023

Conversation

DaevMithran
Copy link
Contributor

No description provided.

@@ -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 })
Copy link
Contributor

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?

Copy link
Contributor

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?

Copy link
Contributor Author

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

abdulla-ashurov
abdulla-ashurov previously approved these changes Jun 7, 2023
@DaevMithran DaevMithran merged commit a33cd25 into develop Jun 7, 2023
@DaevMithran DaevMithran deleted the fix-db-toggle branch June 7, 2023 13:45
cheqd-bot bot pushed a commit that referenced this pull request Jun 7, 2023
## [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))
@cheqd-bot
Copy link

cheqd-bot bot commented Jun 7, 2023

🎉 This PR is included in version 2.1.0-develop.17 🎉

The release is available on:

Your semantic-release bot 📦🚀

cheqd-bot bot pushed a commit that referenced this pull request Jun 8, 2023
## [2.2.0](2.1.1...2.2.0) (2023-06-08)

### Features

* Implement USE_EXTERNAL_DB toggle [DEV 2630]  ([#233](#233)) ([a023242](a023242))

### Bug Fixes

* External db toggle panic ([#248](#248)) ([a33cd25](a33cd25))
@cheqd-bot
Copy link

cheqd-bot bot commented Jun 8, 2023

🎉 This PR is included in version 2.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@cheqd-bot cheqd-bot bot added the released label Jun 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants