Skip to content

Commit 62e51e4

Browse files
committed
Dirty fix in inbound/outbound agencies for ObjectDiffusion
1 parent c2e936f commit 62e51e4

File tree

1 file changed

+14
-14
lines changed
  • ouroboros-network-protocols/src/Ouroboros/Network/Protocol/ObjectDiffusion

1 file changed

+14
-14
lines changed

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -59,28 +59,28 @@ import Ouroboros.Network.Util.ShowProxy
5959
import Quiet (Quiet (..))
6060

6161
pattern OutboundAgency :: Agency
62-
pattern OutboundAgency = ClientAgency
63-
type OutboundAgency = 'ClientAgency
62+
pattern OutboundAgency = ServerAgency
63+
type OutboundAgency = 'ServerAgency
6464

6565
pattern InboundAgency :: Agency
66-
pattern InboundAgency = ServerAgency
67-
type InboundAgency = 'ServerAgency
66+
pattern InboundAgency = ClientAgency
67+
type InboundAgency = 'ClientAgency
6868

6969
pattern AsOutbound :: PeerRole
70-
pattern AsOutbound = AsClient
71-
type AsOutbound = 'AsClient
70+
pattern AsOutbound = AsServer
71+
type AsOutbound = 'AsServer
7272

7373
pattern AsInbound :: PeerRole
74-
pattern AsInbound = AsServer
75-
type AsInbound = 'AsServer
74+
pattern AsInbound = AsClient
75+
type AsInbound = 'AsClient
7676

77-
pattern ReflOutboundAgency :: ReflRelativeAgency ClientAgency (r :: RelativeAgency) (r :: RelativeAgency)
78-
pattern ReflOutboundAgency = ReflClientAgency
79-
type ReflOutboundAgency = 'ReflClientAgency
77+
pattern ReflOutboundAgency :: ReflRelativeAgency ServerAgency (r :: RelativeAgency) (r :: RelativeAgency)
78+
pattern ReflOutboundAgency = ReflServerAgency
79+
type ReflOutboundAgency = 'ReflServerAgency
8080

81-
pattern ReflInboundAgency :: ReflRelativeAgency ServerAgency (r :: RelativeAgency) (r :: RelativeAgency)
82-
pattern ReflInboundAgency = ReflServerAgency
83-
type ReflInboundAgency = 'ReflServerAgency
81+
pattern ReflInboundAgency :: ReflRelativeAgency ClientAgency (r :: RelativeAgency) (r :: RelativeAgency)
82+
pattern ReflInboundAgency = ReflClientAgency
83+
type ReflInboundAgency = 'ReflClientAgency
8484

8585
-- | The kind of the object diffusion protocol, and the types of the states in
8686
-- the protocol state machine.

0 commit comments

Comments
 (0)