diff --git a/src/main/java/com/kickstarter/dropwizard/metrics/influxdb/io/InfluxDbHttpWriter.java b/src/main/java/com/kickstarter/dropwizard/metrics/influxdb/io/InfluxDbHttpWriter.java index fbd4e6b..d21bed9 100644 --- a/src/main/java/com/kickstarter/dropwizard/metrics/influxdb/io/InfluxDbHttpWriter.java +++ b/src/main/java/com/kickstarter/dropwizard/metrics/influxdb/io/InfluxDbHttpWriter.java @@ -22,11 +22,9 @@ * An {@link InfluxDbWriter} that writes to an HTTP/S server using a {@link Client}. */ public class InfluxDbHttpWriter implements InfluxDbWriter { - private final Client client; private final WebTarget influxLines; public InfluxDbHttpWriter(final Client client, final String endpoint) { - this.client = client; this.influxLines = client.target(endpoint); } @@ -36,9 +34,7 @@ public void writeBytes(final byte[] bytes) { } @Override - public void close() throws IOException { - client.close(); - } + public void close() throws IOException {} // NOOP // =================================================================================================================== // Builder