From 364a978f12c85ed4e263311e34f814b0ae506932 Mon Sep 17 00:00:00 2001 From: Michael Sproul Date: Thu, 6 Feb 2025 18:08:20 +1100 Subject: [PATCH] Fix attestation queue length metric (#6924) We were using the wrong queue length for attestation work event metrics. --- beacon_node/beacon_processor/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beacon_node/beacon_processor/src/lib.rs b/beacon_node/beacon_processor/src/lib.rs index 07d2a90df93..92f4636c95a 100644 --- a/beacon_node/beacon_processor/src/lib.rs +++ b/beacon_node/beacon_processor/src/lib.rs @@ -1430,7 +1430,7 @@ impl BeaconProcessor { if let Some(modified_queue_id) = 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::GossipAttestationBatch => 0, // No queue WorkType::GossipAggregate => aggregate_queue.len(),