Skip to content

Commit 570b0e6

Browse files
committed
fix: use lowercase l2 in context
1 parent f901d50 commit 570b0e6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/server.rs

+5-3
Original file line numberDiff line numberDiff line change
@@ -611,15 +611,17 @@ impl RollupBoostServer {
611611
return match l2_fut.await {
612612
Ok(payload) => {
613613
self.probes.set_health(Health::Healthy);
614-
tracing::Span::current().record("payload_source", "L2");
615-
counter!("rpc.blocks_created", "source" => "L2").increment(1);
614+
tracing::Span::current()
615+
.record("payload_source", PayloadSource::L2.to_string());
616+
counter!("rpc.blocks_created", "source" => PayloadSource::L2.to_string())
617+
.increment(1);
616618

617619
let execution_payload = ExecutionPayload::from(payload.clone());
618620
info!(
619621
message = "returning block",
620622
"hash" = %execution_payload.block_hash(),
621623
"number" = %execution_payload.block_number(),
622-
context = "L2",
624+
context = PayloadSource::L2.to_string(),
623625
%payload_id,
624626
);
625627

0 commit comments

Comments
 (0)