From ac6076e45a4b125bdf4931d04e03563ea02203c4 Mon Sep 17 00:00:00 2001 From: Jonathan Strong Date: Tue, 9 Oct 2018 16:22:33 -0400 Subject: [PATCH] add host, db accessors --- src/influx.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/influx.rs b/src/influx.rs index 8e287e0..5ab5d40 100644 --- a/src/influx.rs +++ b/src/influx.rs @@ -241,6 +241,10 @@ impl Clone for InfluxWriter { } impl InfluxWriter { + pub fn host(&self) -> &str { self.host.as_str() } + + pub fn db(&self) -> &str { self.db.as_str() } + /// Sends the `OwnedMeasurement` to the serialization thread. /// #[cfg_attr(feature = "inlines", inline)]