Skip to content

Commit

Permalink
Fix requeue for FIFO queues
Browse files Browse the repository at this point in the history
  • Loading branch information
Pablo Cantero committed Feb 13, 2018
1 parent ddeb454 commit 48fcb42
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bin/cli/sqs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ class SQS < Base

no_commands do
def normalize_dump_message(message)
attributes = message[:attributes]
# symbolize_keys is needed for keeping it compatible with `requeue`
attributes = message[:attributes].symbolize_keys
{
id: message[:message_id],
message_body: message[:body],
message_attributes: message[:message_attributes],
message_deduplication_id: attributes['MessageDeduplicationId'],
message_group_id: attributes['MessageGroupId']
message_deduplication_id: attributes[:MessageDeduplicationId],
message_group_id: attributes[:MessageGroupId]
}
end

Expand Down

0 comments on commit 48fcb42

Please sign in to comment.