From 624588caebbe2bcc831350c255a72cb43cf9739a Mon Sep 17 00:00:00 2001 From: Nico Flaig Date: Mon, 8 Jan 2024 21:55:57 +0100 Subject: [PATCH] Align variable name of timer with histogram naming --- packages/beacon-node/src/chain/prepareNextSlot.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/beacon-node/src/chain/prepareNextSlot.ts b/packages/beacon-node/src/chain/prepareNextSlot.ts index 5bce756c0d13..60658b69ca98 100644 --- a/packages/beacon-node/src/chain/prepareNextSlot.ts +++ b/packages/beacon-node/src/chain/prepareNextSlot.ts @@ -97,7 +97,7 @@ export class PrepareNextSlotScheduler { headRoot, isEpochTransition, }); - const lodestarPrecomputeEpochTransitionTimer = isEpochTransition + const precomputeEpochTransitionTimer = isEpochTransition ? this.metrics?.precomputeNextEpochTransition.duration.startTimer() : null; // No need to wait for this or the clock drift @@ -137,7 +137,7 @@ export class PrepareNextSlotScheduler { previousHits, }); - lodestarPrecomputeEpochTransitionTimer?.(); + precomputeEpochTransitionTimer?.(); } if (isExecutionStateType(prepareState)) {