Skip to content

Commit

Permalink
Update some dependencies for metrics-util.
Browse files Browse the repository at this point in the history
  • Loading branch information
tobz committed Nov 21, 2019
1 parent e926504 commit 9aa00ee
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 4 additions & 0 deletions metrics-util/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.3.1] - 2019-11-21
### Changed
- Updated to crossbeam-epoch 0.8 and switched directly to crossbeam-utils for tests.

## [0.3.0] - 2019-04-30
### Added
- `MetricTree` allows storing hierarchical metric values while being serializable by serde. (#38)
Expand Down
4 changes: 2 additions & 2 deletions metrics-util/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ name = "streaming_integers"
harness = false

[dependencies]
crossbeam-epoch = "^0.7"
crossbeam-epoch = "^0.8"
serde = "^1.0"

[dev-dependencies]
crossbeam = "^0.7"
crossbeam-utils = "^0.7"
criterion = "^0.2.9"
lazy_static = "^1.3"
rand = "^0.6"
5 changes: 3 additions & 2 deletions metrics-util/src/bucket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ impl<T> Default for AtomicBucket<T> {
#[cfg(test)]
mod tests {
use super::{AtomicBucket, Block, BLOCK_SIZE};
use crossbeam_utils::thread::scope;

#[test]
fn test_create_new_block() {
Expand Down Expand Up @@ -325,7 +326,7 @@ mod tests {
let data = block.data();
assert_eq!(data.len(), 0);

let res = crossbeam::scope(|s| {
let res = scope(|s| {
let t1 = s.spawn(|_| {
let mut i = 0;
let mut total = 0;
Expand Down Expand Up @@ -409,7 +410,7 @@ mod tests {
let snapshot = bucket.data();
assert_eq!(snapshot.len(), 0);

let res = crossbeam::scope(|s| {
let res = scope(|s| {
let t1 = s.spawn(|_| {
let mut i = 0;
let mut total = 0;
Expand Down

0 comments on commit 9aa00ee

Please sign in to comment.