Skip to content

Commit

Permalink
p2p-governor: implement PeerStateActions
Browse files Browse the repository at this point in the history
'Ouroboros.Network.PeerSelection.Governor.PeerStateActions' implement
`PeerStateActions` actions using connection manager.
  • Loading branch information
coot committed Sep 14, 2020
1 parent 34ed214 commit e7a5555
Show file tree
Hide file tree
Showing 3 changed files with 789 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ouroboros-network-framework/src/Ouroboros/Network/Mux.hs
Expand Up @@ -19,6 +19,7 @@ module Ouroboros.Network.Mux
, TokProtocolTemperature (..)
, WithProtocolTemperature (..)
, withoutProtocolTemperature
, WithSomeProtocolTemperature (..)
, Bundle (..)
, projectBundle
, OuroborosBundle
Expand Down Expand Up @@ -150,6 +151,12 @@ withoutProtocolTemperature (WithWarm a) = a
withoutProtocolTemperature (WithEstablished a) = a


data WithSomeProtocolTemperature a where
WithSomeProtocolTemperature :: WithProtocolTemperature pt a -> WithSomeProtocolTemperature a

deriving instance Show a => Show (WithSomeProtocolTemperature a)


-- | A bundle of 'HotApp', 'WarmApp' and 'EstablishedApp'.
--
data Bundle a =
Expand Down
1 change: 1 addition & 0 deletions ouroboros-network/ouroboros-network.cabal
Expand Up @@ -66,6 +66,7 @@ library
Ouroboros.Network.PeerSelection.KnownPeers
Ouroboros.Network.PeerSelection.RootPeersDNS
Ouroboros.Network.PeerSelection.Governor
Ouroboros.Network.PeerSelection.Governor.PeerStateActions
Ouroboros.Network.Protocol.ChainSync.Client
Ouroboros.Network.Protocol.ChainSync.ClientPipelined
Ouroboros.Network.Protocol.ChainSync.Codec
Expand Down

0 comments on commit e7a5555

Please sign in to comment.