-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The router currently keeps a mapping of open channels to the endpoints responsible for them. This presents two problems: - when we close down an endpoint, we need to iterate all open channels in order to determine which channels belong to that endpoint - it's possible to have active endpoints associated with the router which the router has no idea about Move to a more explicit model where we add a second mapping: endpoints to their set of open channels. This makes endpoint shutdown easier and adds the advantage that an endpoint with no channels can still be tracked by the router (with an empty channel list). The second point of this will be useful in future commits when the router (and not the routing rules) become responsible for ensuring that all endpoints are correctly shutdown.
- Loading branch information
1 parent
0c634d1
commit be5a593
Showing
3 changed files
with
10 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters