From 572d286f5fbebed7265514495ab975969382545e Mon Sep 17 00:00:00 2001 From: gusto Date: Mon, 17 Jun 2024 16:30:07 +0300 Subject: [PATCH] Missing generic param to the mempool metrics (#662) --- nomos-services/mempool/src/tx/metrics.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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,