Skip to content

Commit

Permalink
unversionedProtocolCodec simplified.
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Shevchenko committed Jan 13, 2022
1 parent b50b215 commit 297cd9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/System/Metrics/Network/Acceptor.hs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ import Ouroboros.Network.Socket (AcceptedConnectionsLimit (..),
SomeResponderApplication (..),
cleanNetworkMutableState, newNetworkMutableState,
nullNetworkServerTracers, withServerNode)
import Ouroboros.Network.Protocol.Handshake.Codec (cborTermVersionDataCodec,
noTimeLimitsHandshake,
import Ouroboros.Network.Protocol.Handshake.Codec (noTimeLimitsHandshake,
timeLimitsHandshake)
import Ouroboros.Network.Protocol.Handshake.Type (Handshake)
import Ouroboros.Network.Protocol.Handshake.Unversioned (UnversionedProtocol (..),
Expand Down Expand Up @@ -86,7 +85,7 @@ doListenToForwarder snocket address timeLimits app = do
address
unversionedHandshakeCodec
timeLimits
(cborTermVersionDataCodec unversionedProtocolDataCodec)
unversionedProtocolDataCodec
acceptableVersion
(simpleSingletonVersions
UnversionedProtocol
Expand Down
5 changes: 2 additions & 3 deletions src/System/Metrics/Network/Forwarder.hs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ import Ouroboros.Network.Mux (MiniProtocol (..), MiniProtocolLimits (.
OuroborosApplication (..), MuxPeer (..),
RunMiniProtocol (..),
miniProtocolLimits, miniProtocolNum, miniProtocolRun)
import Ouroboros.Network.Protocol.Handshake.Codec (cborTermVersionDataCodec,
noTimeLimitsHandshake,
import Ouroboros.Network.Protocol.Handshake.Codec (noTimeLimitsHandshake,
timeLimitsHandshake)
import Ouroboros.Network.Protocol.Handshake.Type (Handshake)
import Ouroboros.Network.Protocol.Handshake.Unversioned (UnversionedProtocol (..),
Expand Down Expand Up @@ -67,7 +66,7 @@ doConnectToAcceptor snocket address timeLimits app =
snocket
unversionedHandshakeCodec
timeLimits
(cborTermVersionDataCodec unversionedProtocolDataCodec)
unversionedProtocolDataCodec
nullNetworkConnectTracers
acceptableVersion
(simpleSingletonVersions
Expand Down

0 comments on commit 297cd9d

Please sign in to comment.