This website works better with JavaScript.
git.jstrong.dev
Home
Explore
Help
Sign In
jstrong
/
influx-writer
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
adds InfluxWriter::nanos(&self) -> i64 convenience fn
master
Jonathan Strong
6 years ago
parent
6b6fe6c67c
commit
f293aa2860
1 changed files
with
2 additions
and
0 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
src/influx.rs
+ 2
- 0
src/influx.rs
View File
@@ -218,6 +218,8 @@ impl InfluxWriter {
self.tx.send(Some(m))
self.tx.send(Some(m))
}
}
pub fn nanos(&self, d: DateTime<Utc>) -> i64 { nanos(d) as i64 }
pub fn tx(&self) -> Sender<Option<OwnedMeasurement>> {
pub fn tx(&self) -> Sender<Option<OwnedMeasurement>> {
self.tx.clone()
self.tx.clone()
}
}
Write
Preview
Loading…
Cancel
Save