Skip to content

Commit 7cf37ca

Browse files
committed
Merge pull request #30824 from eddumelendez
* gh-30824: Polish "Polish InfluxMetricsExportAutoConfiguration" Polish InfluxMetricsExportAutoConfiguration Closes gh-30824
2 parents d338df5 + f8e5a53 commit 7cf37ca

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/influx/InfluxMetricsExportAutoConfiguration.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2020 the original author or authors.
2+
* Copyright 2012-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -65,8 +65,7 @@ public InfluxConfig influxConfig() {
6565

6666
@Bean
6767
@ConditionalOnMissingBean
68-
public InfluxMeterRegistry influxMeterRegistry(InfluxConfig influxConfig, Clock clock,
69-
InfluxProperties influxProperties) {
68+
public InfluxMeterRegistry influxMeterRegistry(InfluxConfig influxConfig, Clock clock) {
7069
return InfluxMeterRegistry.builder(influxConfig).clock(clock).httpClient(
7170
new HttpUrlConnectionSender(this.properties.getConnectTimeout(), this.properties.getReadTimeout()))
7271
.build();

0 commit comments

Comments
 (0)