From c05ffea61283c206e345eb10087d9e61e24b24f7 Mon Sep 17 00:00:00 2001 From: "Jesse L. Zamora" Date: Fri, 7 Feb 2025 12:53:43 -0500 Subject: [PATCH] Fix typo in bindMessageExchange that prevented bind retry from working properly --- Sources/MassTransit/MassTransitConsumer.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/MassTransit/MassTransitConsumer.swift b/Sources/MassTransit/MassTransitConsumer.swift index f3b1924..2d5f7be 100644 --- a/Sources/MassTransit/MassTransitConsumer.swift +++ b/Sources/MassTransit/MassTransitConsumer.swift @@ -139,7 +139,7 @@ public actor MassTransitConsumer: Service { firstAttempt = false } catch { // If this is our first attempt to connect, keep trying until we reach the timeout - if !firstAttempt && ContinuousClock().now - firstAttemptStart < retryInterval { + if firstAttempt && ContinuousClock().now - firstAttemptStart < retryInterval { await gracefulCancellableDelay(connection.connectionPollingInterval) continue }