Merge pull request #30824 from eddumelendez
* gh-30824: Polish "Polish InfluxMetricsExportAutoConfiguration" Polish InfluxMetricsExportAutoConfiguration Closes gh-30824
This commit is contained in:
commit
7cf37cae43
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -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