Skip to content

Commit a16bfb9

Browse files
committed
use self.metrics for ctx
1 parent ebe3850 commit a16bfb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/op-rbuilder/src/payload_builder.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ where
384384
evm_env,
385385
block_env_attributes,
386386
cancel,
387-
metrics: Default::default(),
387+
metrics: self.metrics.clone(),
388388
};
389389

390390
let state_provider = self.client.state_by_block_hash(ctx.parent().hash())?;
@@ -418,7 +418,7 @@ where
418418
"No transaction pool, skipping transaction pool processing",
419419
);
420420

421-
self.metrics
421+
ctx.metrics
422422
.total_block_built_duration
423423
.record(block_build_start_time.elapsed());
424424

0 commit comments

Comments
 (0)