Browse Source

adds InfluxWriter::nanos(&self) -> i64 convenience fn

master
Jonathan Strong 6 years ago
parent
commit
f293aa2860
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/influx.rs

+ 2
- 0
src/influx.rs View File

@@ -218,6 +218,8 @@ impl InfluxWriter {
self.tx.send(Some(m))
}

pub fn nanos(&self, d: DateTime<Utc>) -> i64 { nanos(d) as i64 }

pub fn tx(&self) -> Sender<Option<OwnedMeasurement>> {
self.tx.clone()
}


Loading…
Cancel
Save