Skip to content

Commit

Permalink
chore: use timer?.()
Browse files Browse the repository at this point in the history
  • Loading branch information
twoeths committed Sep 3, 2023
1 parent ec60202 commit 86a5ba8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/beacon-node/src/chain/bls/multithread/jobItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 86a5ba8

Please sign in to comment.