default to receiving no message attributes

This commit is contained in:
Chas Emerick 2011-02-23 07:09:05 -05:00
parent a2e0919240
commit 744b458faa

View file

@ -111,7 +111,7 @@
:source-queue - the URL of the queue from which the message was received"
[^AmazonSQSClient client queue-url & {:keys [limit visibility ^java.util.Collection attributes]
:or {limit 1
attributes #{"All"}}}]
attributes #{}}}]
(let [req (-> (ReceiveMessageRequest. queue-url)
(.withMaxNumberOfMessages (-> limit (min 10) (max 1)))
(.withAttributeNames attributes))