-
Notifications
You must be signed in to change notification settings - Fork 208
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: listen to incoming messages on agent initialize not constructor #1542
fix: listen to incoming messages on agent initialize not constructor #1542
Conversation
Signed-off-by: Niall Shaw <niall.shaw@absa.africa>
96ba3b6
to
e530692
Compare
Signed-off-by: Niall Shaw <niall.shaw@absa.africa>
Codecov Report
@@ Coverage Diff @@
## main #1542 +/- ##
=======================================
Coverage 79.81% 79.81%
=======================================
Files 917 917
Lines 22150 22150
Branches 3888 3888
=======================================
Hits 17679 17679
Misses 4160 4160
Partials 311 311
|
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.
Thanks @niall-shaw ! I don't think it was done on purpose. Agent
objects are usually initialized only once during their lifecycle. With this fix were you able to make several shutdown
/ initialize
sequences?
My only concern to merge it right now is about the fact that messageSubscription
is for some reason a public field, so making it optional could be considered a breaking change. However, I don't know in which use-cases this field is actually accessed from outside. What do you think @TimoGlastra (Git blames you 😛)?
Yes I was :) |
@TimoGlastra @genaris - any updates? |
Yeah not sure why this is public. I think we can merge without it being a breaking change and see this as a fix. |
FYI @TimoGlastra - on AFJ WG call, it was mentioned by both @genaris and @berendsliedrecht that this may be considered breaking change. I was going to look into a different solution. What do you think? |
Yeah it's definitely a breaking change, but I'm not sure why anyone would use this property, and thus I'm okay with merging it as is, as it should never have been exposed. But other solutions also fine for me |
Yeah @niall-shaw I think it'd be better to make this field private and treat it as a fix to not overcomplicate things. Then we merge it for 0.4.1. |
Co-authored-by: Timo Glastra <timo@animo.id> Signed-off-by: Ariel Gentile <gentilester@gmail.com>
…penwallet-foundation#1542) Signed-off-by: Niall Shaw <niall.shaw@absa.africa> Signed-off-by: Martin Auer <martin.auer97@gmail.com>
…penwallet-foundation#1542) Signed-off-by: Niall Shaw <niall.shaw@absa.africa> Signed-off-by: Martin Auer <martin.auer97@gmail.com>
No description provided.