-
Notifications
You must be signed in to change notification settings - Fork 25
pkg/capabilities: support replacing registered capabilities after shutdown #1639
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
Conversation
✅ API Diff Results - No breaking changes |
bb7ad59 to
940dec7
Compare
|
Looks like this approach would require updating some generated code |
940dec7 to
95c48cb
Compare
95c48cb to
6d0215e
Compare
6d0215e to
2df6298
Compare
2df6298 to
298c913
Compare
298c913 to
944e37b
Compare
d7dec7a to
ea1c06b
Compare
| c.CloseAll(c.resources...) | ||
| c.resources = nil |
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.
This resource cleanup includes any created oracles
ea1c06b to
ee68518
Compare
ee68518 to
4b6f707
Compare
4b6f707 to
74ce31c
Compare
74ce31c to
524d565
Compare
| case connectivity.Shutdown, connectivity.TransientFailure, connectivity.Idle: | ||
| // allow replace |
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.
I didn't want to include Idle here, but it is apparently necessary.
| if c == nil { | ||
| return connectivity.Shutdown | ||
| } | ||
| if sg, ok := (*c).(StateGetter); ok { |
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.
why do we need the type cast check here but not on 252, 260?
https://smartcontract-it.atlassian.net/browse/CRE-1126
Supports: