-
Notifications
You must be signed in to change notification settings - Fork 16
NetworkStatusPort #133
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
NetworkStatusPort #133
Conversation
|
Most of the failing tests here (except for tests(nightly) fail because I use Should we expose a method like |
|
After a discussion with Harald the following changes have been made to this draft:
The new docs-page has been updated to reflect these changes. There is an issue failing our current nightly tests caused by this change phil-opp/blog_os#921 The nightly which it is included in is missing fmt right now so I'm thinking I'll just wait a few days and see if things converge a bit before I look into it further. |
I think this is good, yes.
Hmm, I'm not so sure I'm into discarding messages here.
Just try to replace my usage of the constant initialisers with |
Sounds reasonable. Might even be valuable as a public API, in case someone is really short on time and can't wait for graceful behaviours. |
e452be1 to
ce002a2
Compare
connect_network_status_port method to connect components to it added to KompactSystem. Protocol to distinguish between gracefully closed channels and lost connections implemented. Docs page added for the NetworkStatusPort. Public method added SystemPath::socket_address()
2f8cb86 to
9662805
Compare
9662805 to
62d4efe
Compare
Codecov Report
@@ Coverage Diff @@
## master #133 +/- ##
==========================================
+ Coverage 70.68% 71.57% +0.88%
==========================================
Files 90 90
Lines 15844 16336 +492
==========================================
+ Hits 11200 11693 +493
+ Misses 4644 4643 -1
Continue to review full report at Codecov.
|
Bathtor
left a comment
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.
Almost there. Just a bunch of small stuff to fix.
|
Thanks for the review. I took care of the small stuff and managed to do away with the downcasts. The signature and annotated example in core/src/runtime/system.rs:656 is the most relevant change here. I believe this is as clean as it gets. (checked the docs links and updated the docs to reflect the modified API) |
cba4297 to
ea269a2
Compare
Bathtor
left a comment
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.
lgtm
SystemPath::socket_address() -> SocketAddrSystem::kill_system()which kills a system without doing graceful shutdown of network channels.ConnectSystem(SystemPath)which allows systems to initiate connections without sending messages to actors on the system, for set-up phases and network-overlay-management. AndDisconnectSystem(SystemPath)which will initiate graceful disconnection between the systems, no messages are discarded and new messages sent between the systems will automatically reconnect the systems.Please make sure these boxes are checked, before submitting a new PR.
rustfmton the code base before submitting (on latest nightly with rustfmt support)Issues
Closes #82
(old discussion points)