Skip to content

Commit

Permalink
RavenDB-29429 Fix issue with fifo queue
Browse files Browse the repository at this point in the history
  • Loading branch information
djordjedjukic committed Jan 9, 2025
1 parent 5fae62a commit 62642be
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ protected override int PublishMessages(List<QueueWithItems<AmazonSqsItem>> items

foreach (QueueWithItems<AmazonSqsItem> queue in itemsPerQueue)
{
string queueName = queue.Name.ToLower();
string queueName = queue.Name;
bool isFifoQueue = queueName.EndsWith(FifoQueueIdentifier);

if (_queueClient == null)
Expand Down Expand Up @@ -206,7 +206,8 @@ private void SendMessagesOneByOne(string queueName,
{
MessageGroupId = message.MessageGroupId,
QueueUrl = GetQueueUrl(_queueClient, queueName),
MessageBody = message.MessageBody
MessageBody = message.MessageBody,
MessageDeduplicationId = message.MessageDeduplicationId
};

AsyncHelpers.RunSync(() => _queueClient.SendMessageAsync(sendMessageRequest));
Expand Down

0 comments on commit 62642be

Please sign in to comment.