mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-05-19 06:01:19 +00:00
misc/metrics: Use correct event name for dcutr metrics (#2714)
This commit is contained in:
parent
ea487aebfe
commit
cb3784a8b3
@ -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`.
|
||||
|
@ -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 <mail@max-inden.de>"]
|
||||
license = "MIT"
|
||||
repository = "https://github.com/libp2p/rust-libp2p"
|
||||
|
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user