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
impl Clone for InfluxWriter
master
Jonathan Strong
7 years ago
parent
37c80f322d
commit
f74de77ae8
1 changed files
with
13 additions
and
0 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+13
-0
src/influx.rs
+ 13
- 0
src/influx.rs
View File
@@ -187,6 +187,19 @@ impl Default for InfluxWriter {
}
}
}
}
impl Clone for InfluxWriter {
fn clone(&self) -> Self {
let (tx, _) = channel();
InfluxWriter {
host: self.host,
db: self.db,
tx: self.tx.clone(),
kill_switch: tx,
thread: None,
}
}
}
impl InfluxWriter {
impl InfluxWriter {
/// Sends the `OwnedMeasurement` to the serialization thread.
/// Sends the `OwnedMeasurement` to the serialization thread.
///
///
Write
Preview
Loading…
Cancel
Save