From cb3784a8b307bf1da9cc0956f2ed60081dad2ac7 Mon Sep 17 00:00:00 2001 From: Friedel Ziegelmayer Date: Tue, 21 Jun 2022 07:04:18 +0200 Subject: [PATCH] misc/metrics: Use correct event name for dcutr metrics (#2714) --- misc/metrics/CHANGELOG.md | 4 ++++ misc/metrics/Cargo.toml | 2 +- misc/metrics/src/dcutr.rs | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/misc/metrics/CHANGELOG.md b/misc/metrics/CHANGELOG.md index 15cc811d5a1..0ee63b4c4a7 100644 --- a/misc/metrics/CHANGELOG.md +++ b/misc/metrics/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.6.1 + +- Update `dcutr` events from `libp2p_relay_events` to `libp2p_dcutr_events`, to avoid conflict with `relay` events. + # 0.6.0 - Update to `libp2p-core` `v0.33.0`. diff --git a/misc/metrics/Cargo.toml b/misc/metrics/Cargo.toml index f539ce3105d..3b9cbe10530 100644 --- a/misc/metrics/Cargo.toml +++ b/misc/metrics/Cargo.toml @@ -3,7 +3,7 @@ name = "libp2p-metrics" edition = "2021" rust-version = "1.56.1" description = "Metrics for libp2p" -version = "0.6.0" +version = "0.6.1" authors = ["Max Inden "] license = "MIT" repository = "https://github.com/libp2p/rust-libp2p" diff --git a/misc/metrics/src/dcutr.rs b/misc/metrics/src/dcutr.rs index 82b624a2f37..27dcbc08dc8 100644 --- a/misc/metrics/src/dcutr.rs +++ b/misc/metrics/src/dcutr.rs @@ -29,7 +29,7 @@ pub struct Metrics { impl Metrics { pub fn new(registry: &mut Registry) -> Self { - let sub_registry = registry.sub_registry_with_prefix("relay"); + let sub_registry = registry.sub_registry_with_prefix("dcutr"); let events = Family::default(); sub_registry.register(