ouroboros-network
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Network.ExitPolicy

Synopsis

Documentation

newtype RepromoteDelay Source #

After demoting a peer to Warm or Cold, we use a delay to re-promote it back.

Constructors

RepromoteDelay 

Instances

Instances details
Semigroup RepromoteDelay Source # 
Instance details

Defined in Ouroboros.Network.ExitPolicy

Num RepromoteDelay Source # 
Instance details

Defined in Ouroboros.Network.ExitPolicy

Fractional RepromoteDelay Source # 
Instance details

Defined in Ouroboros.Network.ExitPolicy

Show RepromoteDelay Source # 
Instance details

Defined in Ouroboros.Network.ExitPolicy

Eq RepromoteDelay Source # 
Instance details

Defined in Ouroboros.Network.ExitPolicy

Ord RepromoteDelay Source # 
Instance details

Defined in Ouroboros.Network.ExitPolicy

data ExitPolicy a Source #

ReturnPolicy allows to compute reconnection delay from value return by a mini-protocol. If a mini-protocol returned with an error epErrorDelay is used.

Constructors

ExitPolicy 

Fields

stdExitPolicy :: ReturnPolicy a -> ExitPolicy a Source #

ExitPolicy with 10s error delay.

alwaysCleanReturnPolicy Source #

Arguments

:: RepromoteDelay

re-promote delay on error

-> ExitPolicy a