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

refactor: make services more flexible #31

Merged
merged 1 commit into from
Apr 22, 2024

Conversation

dbluhm
Copy link
Member

@dbluhm dbluhm commented Apr 19, 2024

By passing in all dependencies to each method that requires it rather than capturing it in the instance state. This should better support more use cases than the previous structure.

This is a backwards compatible change; the more flexible services are wrapped by the DIDCommMessaging class to behave exactly the same way as before. To use the new, more flexible services, use DIDCommMessagingService class.

By passing in all dependencies to each method that requires it rather
than capturing it in the instance state. This should better support more
use cases than the previous structure.

This is a backwards compatible change; the more flexible services are
wrapped by the `DIDCommMessaging` class to behave exactly the same way
as before. To use the new, more flexible services, use
`DIDCommMessagingService` class.

Signed-off-by: Daniel Bluhm <[email protected]>
Copy link
Contributor

@mepeltier mepeltier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, though I was involved with the changes so I'll let Colton review before merging

Copy link
Contributor

@TheTechmage TheTechmage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any glaring issues, plus, this works on the Raspberry Pi demo that I gave at IIW as a drop-in update with no changes to my code. LGTM

@TheTechmage TheTechmage merged commit f8ecfd6 into main Apr 22, 2024
5 checks passed
@dbluhm dbluhm deleted the refactor/flexible-services branch June 11, 2024 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants