From 86a5ba81bf33045fbff2bd25b0d7dfc41292d283 Mon Sep 17 00:00:00 2001 From: Tuyen Nguyen Date: Sun, 3 Sep 2023 15:21:57 +0700 Subject: [PATCH] chore: use timer?.() --- packages/beacon-node/src/chain/bls/multithread/jobItem.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/beacon-node/src/chain/bls/multithread/jobItem.ts b/packages/beacon-node/src/chain/bls/multithread/jobItem.ts index cf26e4737c69..4ae05cdab913 100644 --- a/packages/beacon-node/src/chain/bls/multithread/jobItem.ts +++ b/packages/beacon-node/src/chain/bls/multithread/jobItem.ts @@ -71,9 +71,7 @@ export function jobItemWorkReq(job: JobQueueItem, format: PointFormat, metrics: // this is monitored on v1.11.0 https://github.com/ChainSafe/lodestar/pull/5912#issuecomment-1700320307 const timer = metrics?.blsThreadPool.signatureDeserializationMainThreadDuration.startTimer(); const signatures = job.sets.map((set) => bls.Signature.fromBytes(set.signature, CoordType.affine, true)); - if (timer) { - timer(); - } + timer?.(); return { opts: job.opts,