Skip to content

Commit 191570e

Browse files
authored
chore: Bump discv5 and remove generic DefaultProtocolId in metrics (#8056)
Bump discv5 version Co-Authored-By: Josh King <[email protected]>
1 parent 3de646c commit 191570e

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ deposit_contract = { path = "common/deposit_contract" }
134134
derivative = "2"
135135
directory = { path = "common/directory" }
136136
dirs = "3"
137-
discv5 = { version = "0.9", features = ["libp2p"] }
137+
discv5 = { version = "0.10", features = ["libp2p"] }
138138
doppelganger_service = { path = "validator_client/doppelganger_service" }
139139
either = "1.9"
140140
environment = { path = "lighthouse/environment" }

common/network_utils/src/discovery_metrics.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ pub static DISCOVERY_SESSIONS: LazyLock<Result<IntGauge>> = LazyLock::new(|| {
3535
});
3636

3737
pub fn scrape_discovery_metrics() {
38-
let metrics =
39-
discv5::metrics::Metrics::from(discv5::Discv5::<discv5::DefaultProtocolId>::raw_metrics());
38+
let metrics = discv5::metrics::Metrics::from(discv5::Discv5::raw_metrics());
4039
set_float_gauge(&DISCOVERY_REQS, metrics.unsolicited_requests_per_second);
4140
set_gauge(&DISCOVERY_SESSIONS, metrics.active_sessions as i64);
4241
set_gauge_vec(&DISCOVERY_BYTES, &["inbound"], metrics.bytes_recv as i64);

0 commit comments

Comments
 (0)