Browse Source

reduce sleep duration when closing thread from 1s -> 10ms

master
Jonathan Strong 4 years ago
parent
commit
e8872c9004
1 changed files with 1 additions and 2 deletions
  1. +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 {


Loading…
Cancel
Save