mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Polish
This commit is contained in:
parent
a03426af57
commit
23c5549832
@ -59,11 +59,11 @@ public class KafkaMetricsAutoConfiguration {
|
||||
}
|
||||
|
||||
private <K, V> void addListener(DefaultKafkaConsumerFactory<K, V> factory, MeterRegistry meterRegistry) {
|
||||
factory.addListener(new MicrometerConsumerListener<K, V>(meterRegistry));
|
||||
factory.addListener(new MicrometerConsumerListener<>(meterRegistry));
|
||||
}
|
||||
|
||||
private <K, V> void addListener(DefaultKafkaProducerFactory<K, V> factory, MeterRegistry meterRegistry) {
|
||||
factory.addListener(new MicrometerProducerListener<K, V>(meterRegistry));
|
||||
factory.addListener(new MicrometerProducerListener<>(meterRegistry));
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user