From 792ea96b53a5a47b8df46708056e7fe31a33958c Mon Sep 17 00:00:00 2001 From: dignifiedquire Date: Sun, 19 Jun 2022 19:37:02 +0200 Subject: [PATCH] fix(metrics): use correct event name for dcutr metrics Currently when both the `relay` and `dcutr` features are enabled this generates an error. --- misc/metrics/src/dcutr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/metrics/src/dcutr.rs b/misc/metrics/src/dcutr.rs index 82b624a2f373..27dcbc08dc84 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(