lib/queuel/sqs/message.rb in queuel-0.4.5 vs lib/queuel/sqs/message.rb in queuel-0.4.6

- old
+ new

@@ -1,9 +1,11 @@ module Queuel module SQS class Message < Base::Message + MAX_KNOWN_BYTE_SIZE = 265 + def raw_body @raw_body ||= message_object ? pull_message : push_message end def delete @@ -39,10 +41,10 @@ end end private :pull_message def max_bytesize - options[:max_bytesize] || 64 * 1024 + options[:max_bytesize] || Queuel::SQS::Message::MAX_KNOWN_BYTE_SIZE * 1024 end private :max_bytesize def s3 @s3 ||= ::AWS::S3.new(