Browse Source

adds scholes feature etc

master
Jonathan Strong 6 years ago
parent
commit
29491e3606
2 changed files with 7 additions and 2 deletions
  1. +2
    -0
      Cargo.toml
  2. +5
    -2
      src/influx.rs

+ 2
- 0
Cargo.toml View File

@@ -33,3 +33,5 @@ debug = []
test = []
localhost = []
harrison = []
washington = []
scholes = []

+ 5
- 2
src/influx.rs View File

@@ -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<K, V> = OrderMap<K, V, BuildHasherDefault<FnvHasher>>;


Loading…
Cancel
Save