bump dependencies (#324)

This commit is contained in:
Jeremy Lempereur 2021-04-13 14:29:27 +02:00 committed by GitHub
parent 24f5522bb4
commit f1697b388b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -44,7 +44,7 @@ num_cpus = "1.13"
pin-utils = "0.1.0"
# Allocator
arrayvec = { version = "0.5.1", features = ["array-sizes-129-255"]}
arrayvec = { version = "0.7.0" }
futures-timer = "3.0.2"
once_cell = "1.4.0"
lever = "0.1"
@ -60,6 +60,6 @@ winapi = { version = "^0.3.8", features = ["basetsd"] }
[dev-dependencies]
tokio = {version = "1.1", features = ["rt", "rt-multi-thread", "macros"] }
tokio-test = "0.4.0"
proptest = "^0.10"
proptest = "^1.0"
futures = "0.3.5"
tracing-subscriber = "0.2.11"

View File

@ -25,7 +25,7 @@ pub trait SmpStats {
/// Stores the load of the given queue.
fn store_load(&self, affinity: usize, load: usize);
/// returns tuple of queue id and load ordered from highest load to lowest.
fn get_sorted_load(&self) -> ArrayVec<[(usize, usize); MAX_CORE]>;
fn get_sorted_load(&self) -> ArrayVec<(usize, usize), MAX_CORE>;
/// mean of the all smp queue load.
fn mean(&self) -> usize;
/// update the smp mean.
@ -166,8 +166,8 @@ impl SmpStats for Stats {
self.smp_load[affinity].store(load, Ordering::SeqCst);
}
fn get_sorted_load(&self) -> ArrayVec<[(usize, usize); MAX_CORE]> {
let mut sorted_load = ArrayVec::<[(usize, usize); MAX_CORE]>::new();
fn get_sorted_load(&self) -> ArrayVec<(usize, usize), MAX_CORE> {
let mut sorted_load = ArrayVec::new();
for (core, load) in self.smp_load.iter().enumerate() {
let load = load.load(Ordering::SeqCst);

View File

@ -86,7 +86,7 @@ nuclei = "0.1"
[dev-dependencies]
env_logger = "0.8"
proptest = "0.10"
proptest = "1.0"
snap = "1.0"
# prime_numbers example
bastion-utils = { version = "0.3.2", path = "../bastion-utils" }