Browse Source

adds dur_nanos method to InfluxWriter

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

+ 2
- 0
src/influx.rs View File

@@ -205,6 +205,8 @@ impl InfluxWriter {

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

pub fn dur_nanos(&self, d: Duration) -> i64 { dur_nanos(d) as i64 }

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


Loading…
Cancel
Save