Skip to content

Commit

Permalink
Fix how we call a symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
descholar-ceo committed Feb 12, 2024
1 parent dbeff15 commit e426ed3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gato/runner.cr
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ module Gato

AMQP::Client.start(Gato.configuration.amqp_url.to_s) do |c|
c.channel do |ch|
q = ch.queue arg0.queue_name
q = ch.queue arg0[:queue_name]
ch.prefetch count: 1

q.subscribe(no_ack: false, block: true) do |msg|
message = JSON.parse msg.body_io.to_s
Log.notice { "Received a new Message" }

arg0.block.call message
arg0[:block].call message

Log.notice { "Done" }
end
Expand Down

0 comments on commit e426ed3

Please sign in to comment.