Created
January 27, 2015 18:25
-
-
Save chadaustin/513ead8c8751247cc21c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
getEntityBodies :: Envelope -> [EntityBody] | |
getEntityBodies Envelope{..} = ePrimary : HashMap.elems eDenormalized | |
gatherMounts :: Envelope -> [Imq.ImqUpdateMount] | |
gatherMounts envelope = catMaybes $ map eUpdates $ getEntityBodies envelope | |
setupQueuesForEnvelope :: World m => CustomerId -> Envelope -> m () | |
setupQueuesForEnvelope cid envelope = do | |
RestIMQ.setupQueues cid $ gatherMounts envelope |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment