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
reduce sleep duration when closing thread from 1s -> 10ms
master
Jonathan Strong
4 years ago
parent
f944dba825
commit
e8872c9004
1 changed files
with
1 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-2
src/lib.rs
+ 1
- 2
src/lib.rs
View File
@@ -847,8 +847,7 @@ impl InfluxWriter {
thread::sleep(Duration::new(0, 1))
}
}
info!(logger, "waiting 1s before exiting thread");
thread::sleep(Duration::from_secs(1));
thread::sleep(Duration::from_millis(10));
}).unwrap();
InfluxWriter {
Write
Preview
Loading…
Cancel
Save