mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 01:05:47 +00:00
Fix attestation queue length metric (#6924)
We were using the wrong queue length for attestation work event metrics.
This commit is contained in:
@@ -1430,7 +1430,7 @@ impl<E: EthSpec> BeaconProcessor<E> {
|
|||||||
|
|
||||||
if let Some(modified_queue_id) = modified_queue_id {
|
if let Some(modified_queue_id) = modified_queue_id {
|
||||||
let queue_len = match modified_queue_id {
|
let queue_len = match modified_queue_id {
|
||||||
WorkType::GossipAttestation => aggregate_queue.len(),
|
WorkType::GossipAttestation => attestation_queue.len(),
|
||||||
WorkType::UnknownBlockAttestation => unknown_block_attestation_queue.len(),
|
WorkType::UnknownBlockAttestation => unknown_block_attestation_queue.len(),
|
||||||
WorkType::GossipAttestationBatch => 0, // No queue
|
WorkType::GossipAttestationBatch => 0, // No queue
|
||||||
WorkType::GossipAggregate => aggregate_queue.len(),
|
WorkType::GossipAggregate => aggregate_queue.len(),
|
||||||
|
|||||||
Reference in New Issue
Block a user