Skip to content

Commit

Permalink
Manually acknowledge messages
Browse files Browse the repository at this point in the history
  • Loading branch information
descholar-ceo committed Feb 12, 2024
1 parent ed2acc6 commit d0ba649
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gato/runner.cr
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module Gato
message = JSON.parse msg.body_io.to_s
Log.notice { "Received a new Message" }
param[0][:block].call message
ch.basic_ack(msg.delivery_tag)
msg.ack
Log.notice { "Done" }
end
end
Expand Down

0 comments on commit d0ba649

Please sign in to comment.