Missing generic param to the mempool metrics (#662)

This commit is contained in:
gusto 2024-06-17 16:30:07 +03:00 committed by GitHub
parent 1dbc0c236e
commit 572d286f5f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -18,12 +18,12 @@ enum MempoolMsgType {
MarkInBlock,
}
impl<BlockId, I, K> From<&MempoolMsg<BlockId, I, K>> for MempoolMsgType
impl<BlockId, P, I, K> From<&MempoolMsg<BlockId, P, I, K>> for MempoolMsgType
where
I: 'static + Debug,
K: 'static + Debug,
{
fn from(event: &MempoolMsg<BlockId, I, K>) -> Self {
fn from(event: &MempoolMsg<BlockId, P, I, K>) -> Self {
match event {
MempoolMsg::Add { .. } => MempoolMsgType::Add,
MempoolMsg::View { .. } => MempoolMsgType::View,
@ -60,7 +60,7 @@ impl Metrics {
Self { messages }
}
pub(crate) fn record<BlockId, I, K>(&self, msg: &MempoolMsg<BlockId, I, K>)
pub(crate) fn record<BlockId, P, I, K>(&self, msg: &MempoolMsg<BlockId, P, I, K>)
where
I: 'static + Debug,
K: 'static + Debug,