diff --git a/hermes-consumers/src/main/java/pl/allegro/tech/hermes/consumers/consumer/BatchConsumer.java b/hermes-consumers/src/main/java/pl/allegro/tech/hermes/consumers/consumer/BatchConsumer.java index d276aded9a..9ef73b023b 100644 --- a/hermes-consumers/src/main/java/pl/allegro/tech/hermes/consumers/consumer/BatchConsumer.java +++ b/hermes-consumers/src/main/java/pl/allegro/tech/hermes/consumers/consumer/BatchConsumer.java @@ -219,7 +219,8 @@ private Retryer createRetryer(final MessageBatch batch, .retryIfRuntimeException() .retryIfResult(result -> consuming && !result.succeeded() && shouldRetryOnClientError(retryClientErrors, result)) .withWaitStrategy(fixedWait(messageBackoff, MILLISECONDS)) - .withStopStrategy(attempt -> attempt.getDelaySinceFirstAttempt() > messageTtlMillis || Thread.currentThread().isInterrupted()) + .withStopStrategy(attempt -> attempt.getDelaySinceFirstAttempt() > messageTtlMillis + || Thread.currentThread().isInterrupted()) .withRetryListener(getRetryListener(result -> { batch.incrementRetryCounter(); markSendingResult(batch, result);