Skip to content

Commit

Permalink
[Messenger][AmazonSqs] Fix auto-setup for fifo queue
Browse files Browse the repository at this point in the history
  • Loading branch information
starred-gijs authored and nicolas-grekas committed Jan 15, 2021
1 parent c7735aa commit 3edc0b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Transport/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,9 @@ public function setup(): void
$parameters = ['QueueName' => $this->configuration['queue_name']];

if (self::isFifoQueue($this->configuration['queue_name'])) {
$parameters['FifoQueue'] = true;
$parameters['Attributes'] = [
'FifoQueue' => 'true',
];
}

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

0 comments on commit 3edc0b6

Please sign in to comment.