Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hot / Warm / Established distinction
p2p and inbound protocol governors need to take care about three types of protocols: ones that run for established connections, warm and hot peers. For this purpose we provide a type level `ProtocolTemperature` with three constructors: `Hot`, `Warm` and `Established`. This patch provides convientient functions to work with the introduced complexity.
- Loading branch information
Showing
1 changed file
with
176 additions
and
0 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