Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
connection-handler & server: use the introduced api
When we start a connection, the connection manager will create three `RunOrStop` mutable variables for three kinds of applications: hot, warm and established, which will be exposed using `MuxPromise`. `MuxPromise` also exposes `Bundle` of `MuxApplications`. These both changes will allow the peer-2-peer governor to start / stop appropriate protocols when changing peer state between worm / hot and cold.
- Loading branch information
Showing
2 changed files
with
70 additions
and
37 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