Skip to content
Draft
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
7 changes: 7 additions & 0 deletions bin/cli/sqs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,13 @@ def message_size(message)
value[:string_value].bytesize
elsif value[:binary_value]
value[:binary_value].bytesize
else
# List-type attributes (string_list_values /
# binary_list_values) carry no scalar value here and
# are intentionally not requeued (see
# normalize_dump_message). Size them as 0 rather than
# crashing the whole batch with `nil + Integer`.
0
end
name_size + data_type_size + value_size
end
Expand Down