Skip to content

Commit a68ce94

Browse files
committed
rename ObjectDiffusion peer functions
1 parent ca2c6d9 commit a68ce94

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

ouroboros-network-protocols/src/Ouroboros/Network/Protocol/ObjectDiffusion/Inbound.hs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ module Ouroboros.Network.Protocol.ObjectDiffusion.Inbound
2121
Collect (..),
2222

2323
-- * Execution as a typed protocol
24-
objectDiffusionInitInboundPeerPipelined,
25-
objectDiffusionNonInitInboundPeerPipelined,
24+
objectDiffusionInboundClientPeerPipelined,
25+
objectDiffusionInboundServerPeerPipelined,
2626
)
2727
where
2828

@@ -104,23 +104,23 @@ inboundRun (CollectPipelined mNone collect) =
104104
(Effect . fmap inboundRun . collect)
105105

106106
-- | Transform a 'ObjectDiffusionInboundPipelined' into a 'PeerPipelined'.
107-
objectDiffusionInitInboundPeerPipelined ::
107+
objectDiffusionInboundClientPeerPipelined ::
108108
forall objectId object m a.
109109
(Functor m) =>
110110
ObjectDiffusionInboundPipelined objectId object m a ->
111111
PeerPipelined (ObjectDiffusion InboundAgency objectId object) AsInbound StInit m a
112-
objectDiffusionInitInboundPeerPipelined (ObjectDiffusionInboundPipelined inboundSt) =
112+
objectDiffusionInboundClientPeerPipelined (ObjectDiffusionInboundPipelined inboundSt) =
113113
PeerPipelined $
114114
Yield ReflInboundAgency MsgInit $
115115
Effect $
116116
inboundRun <$> inboundSt
117117

118-
objectDiffusionNonInitInboundPeerPipelined ::
118+
objectDiffusionInboundServerPeerPipelined ::
119119
forall objectId object m a.
120120
(Functor m) =>
121121
ObjectDiffusionInboundPipelined objectId object m a ->
122122
PeerPipelined (ObjectDiffusion OutboundAgency objectId object) AsInbound StInit m a
123-
objectDiffusionNonInitInboundPeerPipelined (ObjectDiffusionInboundPipelined inboundSt) =
123+
objectDiffusionInboundServerPeerPipelined (ObjectDiffusionInboundPipelined inboundSt) =
124124
PeerPipelined $
125125
Await @_ @_ @(Pipelined Z (Collect objectId object)) ReflOutboundAgency
126126
(\MsgInit -> Effect (inboundRun <$> inboundSt))

ouroboros-network-protocols/src/Ouroboros/Network/Protocol/ObjectDiffusion/Outbound.hs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ module Ouroboros.Network.Protocol.ObjectDiffusion.Outbound
2525
BlockingReplyList (..),
2626

2727
-- * Execution as a typed protocol
28-
objectDiffusionNonInitOutboundPeer,
29-
objectDiffusionInitOutboundPeer,
28+
objectDiffusionOutboundServerPeer,
29+
objectDiffusionOutboundClientPeer,
3030
)
3131
where
3232

@@ -112,22 +112,22 @@ outboundRun OutboundStIdle {recvMsgRequestObjectIds, recvMsgRequestObjects} =
112112
(outboundRun k)
113113

114114
-- | A non-pipelined 'Peer' representing the 'ObjectDiffusionOutbound'.
115-
objectDiffusionNonInitOutboundPeer ::
115+
objectDiffusionOutboundServerPeer ::
116116
forall txid tx m a.
117117
(Monad m) =>
118118
ObjectDiffusionOutbound txid tx m a ->
119119
Peer (ObjectDiffusion InboundAgency txid tx) AsOutbound NonPipelined StInit m a
120-
objectDiffusionNonInitOutboundPeer (ObjectDiffusionOutbound outboundSt) =
120+
objectDiffusionOutboundServerPeer (ObjectDiffusionOutbound outboundSt) =
121121
-- We need to assist GHC to infer the existentially quantified `c` as
122122
-- `Collect objectId object`
123123
Await ReflInboundAgency
124124
(\MsgInit -> Effect (outboundRun <$> outboundSt))
125125

126-
objectDiffusionInitOutboundPeer ::
126+
objectDiffusionOutboundClientPeer ::
127127
forall txid tx m a.
128128
(Monad m) =>
129129
ObjectDiffusionOutbound txid tx m a ->
130130
Peer (ObjectDiffusion OutboundAgency txid tx) AsOutbound NonPipelined StInit m a
131-
objectDiffusionInitOutboundPeer (ObjectDiffusionOutbound outboundSt) =
131+
objectDiffusionOutboundClientPeer (ObjectDiffusionOutbound outboundSt) =
132132
Yield ReflOutboundAgency MsgInit $
133133
Effect $ outboundRun <$> outboundSt

0 commit comments

Comments
 (0)