update dependencies (#2032)

## Issue Addressed

NA

## Proposed Changes

Updates out of date dependencies.

## Additional Info

See also https://github.com/sigp/lighthouse/issues/1712 for a list of dependencies that are still out of date and the resasons.
This commit is contained in:
blacktemplar
2020-12-07 08:20:33 +00:00
parent 9c915349d4
commit a28e8decbf
22 changed files with 98 additions and 183 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ edition = "2018"
[dependencies]
futures = "0.3.7"
tokio-util = { version = "0.4.0", features = ["time"] }
tokio-util = { version = "0.5.0", features = ["time"] }
[dev-dependencies]
tokio = { version = "0.3.2", features = ["time", "rt-multi-thread", "macros"] }
+1 -1
View File
@@ -8,4 +8,4 @@ edition = "2018"
[dependencies]
lazy_static = "1.4.0"
prometheus = "0.10.0"
prometheus = "0.11.0"
+2 -2
View File
@@ -221,7 +221,7 @@ pub fn inc_counter_vec(int_counter_vec: &Result<IntCounterVec>, name: &[&str]) {
}
}
pub fn inc_counter_vec_by(int_counter_vec: &Result<IntCounterVec>, name: &[&str], amount: i64) {
pub fn inc_counter_vec_by(int_counter_vec: &Result<IntCounterVec>, name: &[&str], amount: u64) {
if let Some(counter) = get_int_counter(int_counter_vec, name) {
counter.inc_by(amount);
}
@@ -276,7 +276,7 @@ pub fn inc_counter(counter: &Result<IntCounter>) {
}
}
pub fn inc_counter_by(counter: &Result<IntCounter>, value: i64) {
pub fn inc_counter_by(counter: &Result<IntCounter>, value: u64) {
if let Ok(counter) = counter {
counter.inc_by(value);
}
+1 -1
View File
@@ -15,7 +15,7 @@ bls = { path = "../../crypto/bls" }
serde = { version = "1.0.110", features = ["derive"] }
rayon = "1.3.0"
hyper = "0.13.5"
tokio = { version = "0.2.22", features = ["sync"] }
tokio = { version = "0.3.5", features = ["sync"] }
environment = { path = "../../lighthouse/environment" }
store = { path = "../../beacon_node/store" }
beacon_chain = { path = "../../beacon_node/beacon_chain" }