Fix typo in ListenerContainerWithDlqAndRetryCustomizer example of kafka binder

This commit is contained in:
sai
2022-12-05 13:58:21 -05:00
committed by Soby Chacko
parent 62e6a28d6d
commit 3c7c5230c6

View File

@@ -905,7 +905,7 @@ ListenerContainerWithDlqAndRetryCustomizer cust(KafkaTemplate<?, ?> template) {
@Nullable BackOff backOff) {
if (destinationName.equals("topicWithLongTotalRetryConfig")) {
ConsumerRecordRecoverer dlpr = new DeadLetterPublishingRecoverer(template),
ConsumerRecordRecoverer dlpr = new DeadLetterPublishingRecoverer(template,
dlqDestinationResolver);
container.setCommonErrorHandler(new DefaultErrorHandler(dlpr, backOff));
}