Skip to content

Commit 693922a

Browse files
flubdignifiedquire
andauthored
refactor(iroh): ActiveRelayActor terminates itself (#3061)
## Description This moves the logic of terminating an ActiveRelayActor from the RelayActor to the ActiveRelayActor itself. This is nice for two reasons: - The interactions between ActiveRelayActor and RelayActor are even simpler. RelayActor logic is now easy to reason about. - It will allow ActiveRelayActor to manage reconnections with exponential backoff better. Currently this behaviour is not changed but the RelayActor getting involved meant the backoff behaviour was influcenced in two places. Now that the ActiveRelayActor lifecyle is much more straight forward the RelayActor's terminating is tidied up as well. ## Breaking Changes <!-- Optional, if there are any breaking changes document them, including how to migrate older code. --> ## Notes & open questions <!-- Any notes, remarks or open questions you have to make about the PR. --> ## Change checklist - [x] Self-review. - [x] Documentation updates following the [style guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text), if relevant. - [x] Tests if relevant. - [x] All breaking changes documented. --------- Co-authored-by: Friedel Ziegelmayer <[email protected]>
1 parent 834ab78 commit 693922a

File tree

1 file changed

+134
-118
lines changed

1 file changed

+134
-118
lines changed

0 commit comments

Comments
 (0)