Skip to content

Commit

Permalink
Fix typo in bindMessageExchange that prevented bind retry from workin…
Browse files Browse the repository at this point in the history
…g properly
  • Loading branch information
xtremekforever committed Feb 7, 2025
1 parent 0d74607 commit c05ffea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/MassTransit/MassTransitConsumer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit c05ffea

Please sign in to comment.