Skip to content

Commit

Permalink
refactor: remove server field from deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
stevana committed Dec 12, 2024
1 parent 9a57ee9 commit ceace3d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Spex/Experiment/Protocol3.hs
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,8 @@ clientProtocol =
Protocol [Transition (== ClientInit) (Recv TM (\Ack -> End ClientInit))]

data Deployment node msg = Deployment
{ topology :: Topology node
{ topology :: Topology node -- NOTE: not used yet...
, protocols :: Map node (SomeProtocol node msg)
, server :: node
}

twoPCDeployment :: Deployment Node Msg
Expand All @@ -145,7 +144,6 @@ twoPCDeployment =
, (RM2, SomeProtocol rmProtocol RMInit)
, (Client, SomeProtocol clientProtocol ClientInit)
]
, server = TM
}

data Mock state node msg = Mock
Expand Down

0 comments on commit ceace3d

Please sign in to comment.