Skip to content

Commit

Permalink
Minor formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ffakenz committed Apr 30, 2024
1 parent 3fa5c1c commit 84bbf45
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion hydra-node/src/Hydra/Node/Network.hs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,15 @@ withNetwork tracer configuration callback action = do
withFlipHeartbeats $
withReliability (contramap Reliability tracer) messagePersistence me otherParties $
withAuthentication (contramap Authentication tracer) signingKey otherParties $
withOuroborosNetwork (contramap Network tracer) HydraNetworkConfig{protocolVersion = currentHydraVersionedProtocol, localHost, remoteHosts = peers} (\HydraHandshakeRefused{remoteHost} -> callback . ConnectivityEvent $ HandshakeFailure remoteHost)
withOuroborosNetwork
(contramap Network tracer)
HydraNetworkConfig
{ protocolVersion = currentHydraVersionedProtocol
, localHost
, remoteHosts = peers
}
( \HydraHandshakeRefused{remoteHost} -> callback . ConnectivityEvent $ HandshakeFailure remoteHost
)

withHeartbeat nodeId reliability (callback . mapHeartbeat) $ \network ->
action network
Expand Down

0 comments on commit 84bbf45

Please sign in to comment.