Skip to content

Commit 982be53

Browse files
committed
impl serde for metrics
1 parent dae8cea commit 982be53

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

portmapper/src/metrics.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
use iroh_metrics::{Counter, MetricsGroup};
2+
use serde::{Serialize, Deserialize};
23

34
/// Enum of metrics for the module
4-
#[derive(Debug, Default, MetricsGroup)]
5+
#[derive(Debug, Default, MetricsGroup, Serialize, Deserialize)]
56
#[metrics(name = "portmap")]
67
pub struct Metrics {
78
/*

0 commit comments

Comments
 (0)