diff --git a/nomos-services/mempool/src/tx/metrics.rs b/nomos-services/mempool/src/tx/metrics.rs index 02825ea5..0fbcd1b5 100644 --- a/nomos-services/mempool/src/tx/metrics.rs +++ b/nomos-services/mempool/src/tx/metrics.rs @@ -18,12 +18,12 @@ enum MempoolMsgType { MarkInBlock, } -impl From<&MempoolMsg> for MempoolMsgType +impl From<&MempoolMsg> for MempoolMsgType where I: 'static + Debug, K: 'static + Debug, { - fn from(event: &MempoolMsg) -> Self { + fn from(event: &MempoolMsg) -> Self { match event { MempoolMsg::Add { .. } => MempoolMsgType::Add, MempoolMsg::View { .. } => MempoolMsgType::View, @@ -60,7 +60,7 @@ impl Metrics { Self { messages } } - pub(crate) fn record(&self, msg: &MempoolMsg) + pub(crate) fn record(&self, msg: &MempoolMsg) where I: 'static + Debug, K: 'static + Debug,