Record currentSize on addLocked
Record currentSize on addLocked
This commit is contained in:
parent
d1b8af338e
commit
d121760172
@ -1022,6 +1022,9 @@ func (mp *MessagePool) addLocked(ctx context.Context, m *types.SignedMessage, st
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// Record the current size of the Mpool
|
||||||
|
stats.Record(ctx, metrics.MpoolMessageCount.M(int64(mp.currentSize)))
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user