Browse Source

remove shuteye dep

master
Jonathan Strong 7 years ago
parent
commit
31959480be
4 changed files with 8 additions and 8 deletions
  1. +1
    -1
      Cargo.toml
  2. +5
    -4
      src/influx.rs
  3. +1
    -2
      src/latency.rs
  4. +1
    -1
      src/lib.rs

+ 1
- 1
Cargo.toml View File

@@ -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" }


+ 5
- 4
src/influx.rs View File

@@ -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));
}
} }
} }




+ 1
- 2
src/latency.rs View File

@@ -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 }


+ 1
- 1
src/lib.rs View File

@@ -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;


Loading…
Cancel
Save