Record currentSize on addLocked

Record currentSize on addLocked
This commit is contained in:
Phi 2023-11-03 08:59:01 +01:00
parent d1b8af338e
commit d121760172

View File

@ -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
} }