@@ -13,7 +13,7 @@ termion = "1.4.0" | |||||
slog = "2.0.6" | slog = "2.0.6" | ||||
sloggers = "0.2" | sloggers = "0.2" | ||||
slog-term = "2" | slog-term = "2" | ||||
shuteye = "^0" | |||||
# shuteye = "^0" | |||||
# chashmap = "2" | # chashmap = "2" | ||||
windows = { path = "../windows" } | windows = { path = "../windows" } | ||||
@@ -17,7 +17,6 @@ use influent::measurement::{Measurement, Value}; | |||||
use zmq; | use zmq; | ||||
use chrono::{DateTime, Utc, TimeZone}; | use chrono::{DateTime, Utc, TimeZone}; | ||||
use sloggers::types::Severity; | use sloggers::types::Severity; | ||||
use shuteye; | |||||
use super::{nanos, file_logger}; | use super::{nanos, file_logger}; | ||||
use warnings::Warning; | use warnings::Warning; | ||||
@@ -568,9 +567,11 @@ impl InfluxWriter { | |||||
if end { break } | if end { break } | ||||
if !rcvd_msg { | |||||
#[cfg(feature = "no-thrash")] | |||||
shuteye::sleep(Duration::new(0, 5000)); | |||||
#[cfg(feature = "no-thrash")] | |||||
{ | |||||
if !rcvd_msg { | |||||
thread::sleep(Duration::new(0, 5000)); | |||||
} | |||||
} | } | ||||
} | } | ||||
@@ -10,7 +10,6 @@ use pub_sub::PubSub; | |||||
use zmq; | use zmq; | ||||
use influent::measurement::{Measurement, Value}; | use influent::measurement::{Measurement, Value}; | ||||
use sloggers::types::Severity; | use sloggers::types::Severity; | ||||
use shuteye; | |||||
//use chashmap::CHashMap; | //use chashmap::CHashMap; | ||||
use windows::{DurationWindow, Incremental, Window}; | use windows::{DurationWindow, Incremental, Window}; | ||||
@@ -388,7 +387,7 @@ impl Manager { | |||||
debug!(logger, "sent broadcast"); | debug!(logger, "sent broadcast"); | ||||
} else { | } else { | ||||
#[cfg(feature = "no-thrash")] | #[cfg(feature = "no-thrash")] | ||||
shuteye::sleep(Duration::new(0, 1000)); | |||||
thread::sleep(Duration::new(0, 1000)); | |||||
} | } | ||||
if terminate { break } | if terminate { break } | ||||
@@ -15,7 +15,7 @@ extern crate termion; | |||||
//extern crate pub_sub; | //extern crate pub_sub; | ||||
extern crate sloggers; | extern crate sloggers; | ||||
extern crate slog_term; | extern crate slog_term; | ||||
extern crate shuteye; | |||||
//extern crate shuteye; | |||||
//extern crate chashmap; | //extern crate chashmap; | ||||
extern crate windows; | extern crate windows; | ||||