Skip to content

Commit 39b230d

Browse files
authored
Merge pull request #4291 from Particular/john/filter
Filter sqs fifo queue at the transport level
2 parents 043ec61 + 383cbc9 commit 39b230d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Particular.LicensingComponent/Shared/PlatformEndpointHelper.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ public static bool IsPlatformEndpoint(string endpointName, ThroughputSettings th
1111
|| endpointName.Equals(throughputSettings.ServiceControlQueue, StringComparison.OrdinalIgnoreCase)
1212
|| endpointName.EndsWith(".Timeouts", StringComparison.OrdinalIgnoreCase)
1313
|| endpointName.EndsWith(".TimeoutsDispatcher", StringComparison.OrdinalIgnoreCase)
14-
|| endpointName.EndsWith("-delay.fifo", StringComparison.OrdinalIgnoreCase)
1514
|| endpointName.StartsWith($"{throughputSettings.ServiceControlQueue}.", StringComparison.OrdinalIgnoreCase)
1615
|| endpointName.Equals(ServiceControlSettings.ServiceControlThroughputDataQueue, StringComparison.OrdinalIgnoreCase)
1716
|| AuditThroughputCollectorHostedService.AuditQueues.Any(a => endpointName.Equals(a, StringComparison.OrdinalIgnoreCase));

src/ServiceControl.Transports.SQS/AmazonSQSQuery.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,10 @@ public override async IAsyncEnumerable<IBrokerQueue> GetQueueNames(
243243

244244
foreach (var queue in response.QueueUrls.Select(url => url.Split('/')[4]))
245245
{
246-
yield return new DefaultBrokerQueue(queue);
246+
if (!queue.EndsWith("-delay.fifo", StringComparison.OrdinalIgnoreCase))
247+
{
248+
yield return new DefaultBrokerQueue(queue);
249+
}
247250
}
248251

249252
if (response.NextToken is not null)

0 commit comments

Comments
 (0)