Polish InfluxMetricsExportAutoConfiguration

See gh-30824
This commit is contained in:
Eddú Meléndez 2022-04-28 02:45:58 -05:00 committed by Andy Wilkinson
parent d338df513a
commit b0d5364efa

View File

@ -65,8 +65,7 @@ public class InfluxMetricsExportAutoConfiguration {
@Bean
@ConditionalOnMissingBean
public InfluxMeterRegistry influxMeterRegistry(InfluxConfig influxConfig, Clock clock,
InfluxProperties influxProperties) {
public InfluxMeterRegistry influxMeterRegistry(InfluxConfig influxConfig, Clock clock) {
return InfluxMeterRegistry.builder(influxConfig).clock(clock).httpClient(
new HttpUrlConnectionSender(this.properties.getConnectTimeout(), this.properties.getReadTimeout()))
.build();