From 6b6fe6c67c2c48a52164a92e9792721798e05c72 Mon Sep 17 00:00:00 2001 From: Jonathan Strong Date: Mon, 5 Mar 2018 11:03:13 -0500 Subject: [PATCH] influx host --- src/influx.rs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/influx.rs b/src/influx.rs index 84caa00..95e86d5 100644 --- a/src/influx.rs +++ b/src/influx.rs @@ -38,15 +38,9 @@ const DB_NAME: &'static str = "mm2"; #[cfg(any(test, feature = "test"))] const DB_NAME: &'static str = "mm2_test"; -#[cfg(not(any(feature = "harrison", feature = "washington", feature = "scholes")))] +#[cfg(not(any(feature = "scholes")))] const DB_HOST: &'static str = "http://127.0.0.1:8086/write"; -#[cfg(feature = "harrison")] -const DB_HOST: &'static str = "http://harrison.0ptimus.internal:8086/write"; - -#[cfg(feature = "washington")] -const DB_HOST: &'static str = "http://washington.0ptimus.internal:8086/write"; - #[cfg(feature = "scholes")] const DB_HOST: &'static str = "http://159.203.81.249:8086/write"; @@ -198,10 +192,8 @@ impl Default for InfluxWriter { fn default() -> Self { if cfg!(any(test, feature = "test")) { InfluxWriter::new("localhost", "test", "/home/jstrong/src/logging/var/log/influx-test.log", 1) - } else if cfg!(feature = "localhost") { - InfluxWriter::new("localhost", "mm2", "/home/jstrong/src/logging/var/log/influx-default.log", BUFFER_SIZE) } else { - InfluxWriter::new("washington.0ptimus.internal", "mm2", "var/influx-default.log", BUFFER_SIZE) + InfluxWriter::new("localhost", "mm2", "/home/jstrong/src/logging/var/log/influx-default.log", BUFFER_SIZE) } } }