default to receiving no message attributes
This commit is contained in:
parent
a2e0919240
commit
744b458faa
1 changed files with 1 additions and 1 deletions
|
|
@ -111,7 +111,7 @@
|
||||||
:source-queue - the URL of the queue from which the message was received"
|
:source-queue - the URL of the queue from which the message was received"
|
||||||
[^AmazonSQSClient client queue-url & {:keys [limit visibility ^java.util.Collection attributes]
|
[^AmazonSQSClient client queue-url & {:keys [limit visibility ^java.util.Collection attributes]
|
||||||
:or {limit 1
|
:or {limit 1
|
||||||
attributes #{"All"}}}]
|
attributes #{}}}]
|
||||||
(let [req (-> (ReceiveMessageRequest. queue-url)
|
(let [req (-> (ReceiveMessageRequest. queue-url)
|
||||||
(.withMaxNumberOfMessages (-> limit (min 10) (max 1)))
|
(.withMaxNumberOfMessages (-> limit (min 10) (max 1)))
|
||||||
(.withAttributeNames attributes))
|
(.withAttributeNames attributes))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue