Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ getLastDeathQueue Nothing = Nothing

-- FUTUREWORK: what happens if messages expire _after_ we checked against cassandra here?
-- Should we have an async notification terminate this?
-- TODO: document this function *much* better. explain the general idea.
startConsumer :: Q.Channel -> AppT IO Q.ConsumerTag
startConsumer chan = do
env <- ask
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ getRemoteDomains adminClient = do
type WorkerResult = (IORef (Maybe Q.Channel), IORef (Map Domain (Q.ConsumerTag, MVar ())))

-- FUTUREWORK: rework this in the vein of DeadLetterWatcher
-- TODO: document this function *much* better. explain the general idea.
startWorker :: AmqpEndpoint -> AppT IO WorkerResult
startWorker rabbitmqOpts = do
env <- ask
Expand Down