Skip to content

Commit

Permalink
Update Connection.php
Browse files Browse the repository at this point in the history
remove DelaySeconds parameter for FIFO queues
  • Loading branch information
netbull authored Sep 5, 2020
1 parent 2288291 commit 271a2de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Transport/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ public function send(string $body, array $headers, int $delay = 0, ?string $mess
if (self::isFifoQueue($this->configuration['queue_name'])) {
$parameters['MessageGroupId'] = null !== $messageGroupId ? $messageGroupId : __METHOD__;
$parameters['MessageDeduplicationId'] = null !== $messageDeduplicationId ? $messageDeduplicationId : sha1(json_encode(['body' => $body, 'headers' => $headers]));
unset($parameters['DelaySeconds']);
}

$this->client->sendMessage($parameters);
Expand Down

0 comments on commit 271a2de

Please sign in to comment.