misc/metrics: Use correct event name for dcutr metrics (#2714)

This commit is contained in:
Friedel Ziegelmayer 2022-06-21 07:04:18 +02:00 committed by GitHub
parent ea487aebfe
commit cb3784a8b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View File

@ -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 # 0.6.0
- Update to `libp2p-core` `v0.33.0`. - Update to `libp2p-core` `v0.33.0`.

View File

@ -3,7 +3,7 @@ name = "libp2p-metrics"
edition = "2021" edition = "2021"
rust-version = "1.56.1" rust-version = "1.56.1"
description = "Metrics for libp2p" description = "Metrics for libp2p"
version = "0.6.0" version = "0.6.1"
authors = ["Max Inden <mail@max-inden.de>"] authors = ["Max Inden <mail@max-inden.de>"]
license = "MIT" license = "MIT"
repository = "https://github.com/libp2p/rust-libp2p" repository = "https://github.com/libp2p/rust-libp2p"

View File

@ -29,7 +29,7 @@ pub struct Metrics {
impl Metrics { impl Metrics {
pub fn new(registry: &mut Registry) -> Self { 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(); let events = Family::default();
sub_registry.register( sub_registry.register(