@@ -1,6 +1,6 @@ | |||||
[package] | [package] | ||||
name = "influx-writer" | name = "influx-writer" | ||||
version = "0.17.0" | |||||
version = "0.18.0" | |||||
authors = ["Jonathan Strong <jonathan.strong@gmail.com>"] | authors = ["Jonathan Strong <jonathan.strong@gmail.com>"] | ||||
edition = "2018" | edition = "2018" | ||||
description = "opinionated influxdb client" | description = "opinionated influxdb client" | ||||
@@ -26,11 +26,11 @@ slog-term = "2" | |||||
uuid = { version = "0.8", features = ["serde", "v4", "slog"] } | uuid = { version = "0.8", features = ["serde", "v4", "slog"] } | ||||
slog-async = "2" | slog-async = "2" | ||||
smallvec = "0.6" | smallvec = "0.6" | ||||
crossbeam-channel = "0.3" | |||||
crossbeam-channel = "0.5" | |||||
pretty_toa = "1.0.0" | pretty_toa = "1.0.0" | ||||
signal-hook = { version = "0.1.15", optional = true } | |||||
signal-hook = { version = "0.3.8", optional = true } | |||||
decimal = { version = "2.4.2", registry = "mmcxi" } | |||||
decimal = { version = "2.4.3", registry = "mmcxi" } | |||||
decimal-macros = { version = "0.3", registry = "mmcxi" } | decimal-macros = { version = "0.3", registry = "mmcxi" } | ||||
[features] | [features] | ||||
@@ -16,9 +16,9 @@ const N_PER: usize = 567; | |||||
fn main() { | fn main() { | ||||
let start = Instant::now(); | let start = Instant::now(); | ||||
let term = Arc::new(AtomicBool::new(false)); | let term = Arc::new(AtomicBool::new(false)); | ||||
signal_hook::flag::register(signal_hook::SIGINT, Arc::clone(&term)).unwrap(); | |||||
signal_hook::flag::register(signal_hook::SIGTERM, Arc::clone(&term)).unwrap(); | |||||
signal_hook::flag::register(signal_hook::SIGQUIT, Arc::clone(&term)).unwrap(); | |||||
signal_hook::flag::register(signal_hook::consts::signal::SIGINT, Arc::clone(&term)).unwrap(); | |||||
signal_hook::flag::register(signal_hook::consts::signal::SIGTERM, Arc::clone(&term)).unwrap(); | |||||
signal_hook::flag::register(signal_hook::consts::signal::SIGQUIT, Arc::clone(&term)).unwrap(); | |||||
let decorator = slog_term::TermDecorator::new().stdout().force_color().build(); | let decorator = slog_term::TermDecorator::new().stdout().force_color().build(); | ||||
let drain = slog_term::FullFormat::new(decorator).use_utc_timestamp().build().fuse(); | let drain = slog_term::FullFormat::new(decorator).use_utc_timestamp().build().fuse(); | ||||