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
|
@Bean
|
||||||
@ConditionalOnMissingBean
|
@ConditionalOnMissingBean
|
||||||
public InfluxMeterRegistry influxMeterRegistry(InfluxConfig influxConfig, Clock clock,
|
public InfluxMeterRegistry influxMeterRegistry(InfluxConfig influxConfig, Clock clock) {
|
||||||
InfluxProperties influxProperties) {
|
|
||||||
return InfluxMeterRegistry.builder(influxConfig).clock(clock).httpClient(
|
return InfluxMeterRegistry.builder(influxConfig).clock(clock).httpClient(
|
||||||
new HttpUrlConnectionSender(this.properties.getConnectTimeout(), this.properties.getReadTimeout()))
|
new HttpUrlConnectionSender(this.properties.getConnectTimeout(), this.properties.getReadTimeout()))
|
||||||
.build();
|
.build();
|
||||||
|
Loading…
Reference in New Issue
Block a user