Browse Source

upgrade crossbeam-channel, signal-hook

master
Jonathan Strong 3 years ago
parent
commit
f5fa0d7a41
2 changed files with 7 additions and 7 deletions
  1. +4
    -4
      Cargo.toml
  2. +3
    -3
      examples/write.rs

+ 4
- 4
Cargo.toml View File

@@ -1,6 +1,6 @@
[package]
name = "influx-writer"
version = "0.17.0"
version = "0.18.0"
authors = ["Jonathan Strong <jonathan.strong@gmail.com>"]
edition = "2018"
description = "opinionated influxdb client"
@@ -26,11 +26,11 @@ slog-term = "2"
uuid = { version = "0.8", features = ["serde", "v4", "slog"] }
slog-async = "2"
smallvec = "0.6"
crossbeam-channel = "0.3"
crossbeam-channel = "0.5"
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" }

[features]


+ 3
- 3
examples/write.rs View File

@@ -16,9 +16,9 @@ const N_PER: usize = 567;
fn main() {
let start = Instant::now();
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 drain = slog_term::FullFormat::new(decorator).use_utc_timestamp().build().fuse();


Loading…
Cancel
Save