| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Ouroboros.Network.ExitPolicy
Synopsis
- newtype RepromoteDelay = RepromoteDelay {}
- data ExitPolicy a = ExitPolicy {}
- type ReturnPolicy a = a -> RepromoteDelay
- alwaysCleanReturnPolicy :: RepromoteDelay -> ExitPolicy a
Documentation
newtype RepromoteDelay Source #
After demoting a peer to Warm or Cold, we use a delay to re-promote it back.
Constructors
| RepromoteDelay | |
Fields | |
Instances
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
| |
type ReturnPolicy a = a -> RepromoteDelay Source #
alwaysCleanReturnPolicy Source #
Arguments
| :: RepromoteDelay | re-promote delay on error |
| -> ExitPolicy a |