Skip to content

Commit

Permalink
add autoconfiguration in case we don't have a PP for the Producer
Browse files Browse the repository at this point in the history
  • Loading branch information
sszp committed Sep 9, 2024
1 parent 17aca96 commit 38c079f
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ public IMeterCache twDefaultMeterCache(MeterRegistry meterRegistry) {
return new MeterCache(meterRegistry);
}



@Bean
@ConditionalOnMissingBean(ITransactionsHelper.class)
public TransactionsHelper twTransactionsHelper() {
Expand All @@ -51,4 +49,9 @@ public List<ITkmsMessageDecorator> messageDecorators() {
return Collections.emptyList();
}

@Bean
@ConditionalOnMissingBean(ITkmsKafkaProducerPostProcessor.class)
public List<ITkmsKafkaProducerPostProcessor> producerPostProcessors() {
return Collections.emptyList();
}
}

0 comments on commit 38c079f

Please sign in to comment.