diff --git a/Cargo.lock b/Cargo.lock index 7e6d3293..f67ee4e6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -164,7 +164,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "cernan" -version = "0.8.4-pre" +version = "0.8.4" dependencies = [ "byteorder 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", "chan-signal 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/Cargo.toml b/Cargo.toml index 4ff96510..14e824dd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ license = "MIT" name = "cernan" readme = "README.md" repository = "https://github.com/postmates/cernan" -version = "0.8.4-pre" +version = "0.8.4" [[bin]] name = "cernan" diff --git a/src/sink/prometheus.rs b/src/sink/prometheus.rs index c3c41cc8..7217fbad 100644 --- a/src/sink/prometheus.rs +++ b/src/sink/prometheus.rs @@ -138,7 +138,7 @@ impl Accumulator { samples.insert(idx, telem); if samples.len() > cap { let top_idx = samples.len() - cap; - samples.drain(0 .. top_idx); + samples.drain(0..top_idx); } } }