From 29491e36066e01ca0f93261ee44c609691c10b35 Mon Sep 17 00:00:00 2001 From: Jonathan Strong Date: Tue, 20 Feb 2018 18:46:45 +0000 Subject: [PATCH] adds scholes feature etc --- Cargo.toml | 2 ++ src/influx.rs | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index ebe0d14..41e2674 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,3 +33,5 @@ debug = [] test = [] localhost = [] harrison = [] +washington = [] +scholes = [] diff --git a/src/influx.rs b/src/influx.rs index a5a1db3..7118a6a 100644 --- a/src/influx.rs +++ b/src/influx.rs @@ -38,15 +38,18 @@ const DB_NAME: &'static str = "mm2"; #[cfg(any(test, feature = "test"))] const DB_NAME: &'static str = "mm2_test"; -#[cfg(all(not(feature = "harrison"), any(test, feature = "test", feature = "localhost")))] +#[cfg(not(any(feature = "harrison", feature = "washington", 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(not(any(feature = "harrison", feature = "localhost", test, feature = "test")))] +#[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"; + pub use super::{dur_nanos, dt_nanos}; pub type Map = OrderMap>;