mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Polish InfluxMetricsExportAutoConfiguration
See gh-30824
This commit is contained in:
parent
d338df513a
commit
b0d5364efa
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user