Skip to content

Commit

Permalink
Consume from task_queue
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelklishin committed Jan 9, 2016
1 parent 7ba330d commit 331e8f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elixir/worker.exs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ end
AMQP.Queue.declare(channel, "task_queue", durable: true)
AMQP.Basic.qos(channel, prefetch_count: 1)

AMQP.Basic.consume(channel, "hello")
AMQP.Basic.consume(channel, "task_queue")
IO.puts " [*] Waiting for messages. To exit press CTRL+C, CTRL+C"

Worker.wait_for_messages(channel)

0 comments on commit 331e8f2

Please sign in to comment.