Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Commit

Permalink
Appease case analysis checker
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentRDC committed Mar 25, 2024
1 parent 68a1461 commit b242a95
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Control/Distributed/Process/Backend/SimpleLocalnet.hs
Original file line number Diff line number Diff line change
Expand Up @@ -360,9 +360,14 @@ findSlaves backend = do
-- Wait for the replies
catMaybes <$> replicateM (length nodes) (
receiveWait
[ match (\(WhereIsReply "slaveController" mPid) -> return mPid)
[ match handleWhereIsReply
, match (\(NodeMonitorNotification {}) -> return Nothing)
])
where
handleWhereIsReply :: WhereIsReply -> Process (Maybe ProcessId)
handleWhereIsReply (WhereIsReply name mPid)
| name == "slaveController" = return mPid
| otherwise = return Nothing

-- | Terminate all slaves
terminateAllSlaves :: Backend -> Process ()
Expand Down

0 comments on commit b242a95

Please sign in to comment.