From d9bbb2963d7397f711a7646e0b05081eb1b64eee Mon Sep 17 00:00:00 2001 From: Ryan Tenney Date: Tue, 19 Jul 2016 12:19:16 -0400 Subject: [PATCH] Redundant call to start in ElasticSearchReporterFactoryBean --- .../spring/reporter/ElasticSearchReporterFactoryBean.java | 2 -- src/test/resources/reporter-test.xml | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/ryantenney/metrics/spring/reporter/ElasticSearchReporterFactoryBean.java b/src/main/java/com/ryantenney/metrics/spring/reporter/ElasticSearchReporterFactoryBean.java index aa15b63c..ebc970cb 100644 --- a/src/main/java/com/ryantenney/metrics/spring/reporter/ElasticSearchReporterFactoryBean.java +++ b/src/main/java/com/ryantenney/metrics/spring/reporter/ElasticSearchReporterFactoryBean.java @@ -48,8 +48,6 @@ protected ElasticsearchReporter createInstance() .hosts(getProperty(ElasticSearchReporterElementParser.HOSTS, String[].class)) .build(); - elasticsearchReporter.start(getPeriod(), TimeUnit.NANOSECONDS); - return elasticsearchReporter; } diff --git a/src/test/resources/reporter-test.xml b/src/test/resources/reporter-test.xml index 42fb95e6..d8ab7883 100755 --- a/src/test/resources/reporter-test.xml +++ b/src/test/resources/reporter-test.xml @@ -43,11 +43,13 @@ - +