Skip to content

Commit 6108733

Browse files
cootcrocodile-dentist
authored andcommitted
ouroboros-network-api: RemoteAddress encoding
Polymorphic over version, we need it in both `dmq-node` and `cardano-diffusion`.
1 parent 8617d14 commit 6108733

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

dmq-node/app/Main.hs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,8 @@ runDMQ commandLineConfig = do
123123
dmqConfig
124124
nodeKernel
125125
(dmqCodecs
126-
-- TODO: `maxBound :: Cardano.Network.NodeToNode.NodeToNodeVersion`
127-
-- is unsafe here!
128-
(encodeRemoteAddress (maxBound :: NodeToNodeVersion))
129-
(decodeRemoteAddress (maxBound :: NodeToNodeVersion)))
126+
(encodeRemoteAddress (maxBound @NodeToNodeVersion))
127+
(decodeRemoteAddress (maxBound @NodeToNodeVersion)))
130128
dmqLimitsAndTimeouts
131129
defaultSigDecisionPolicy
132130
dmqNtCApps =

0 commit comments

Comments
 (0)