Skip to content

Commit 66837b8

Browse files
authored
Merge pull request #1266 from aldenw/patch-1
fix: parenthesis missing allowed invalid delays
2 parents 941d4c8 + a5c8d96 commit 66837b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/sqs/SqsProducer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function send(Destination $destination, Message $message): void
5656
];
5757

5858
if (null !== $this->deliveryDelay) {
59-
$arguments['DelaySeconds'] = (int) $this->deliveryDelay / 1000;
59+
$arguments['DelaySeconds'] = (int) ceil($this->deliveryDelay / 1000);
6060
}
6161

6262
if ($message->getDelaySeconds()) {

0 commit comments

Comments
 (0)