Skip to content

Commit ab3ffda

Browse files
committed
Small changes to benchmark
1 parent 94b1399 commit ab3ffda

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

linera-client/src/benchmark.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@ where
186186
let local_node = local_node.clone();
187187
let chain_client = chain_clients[&chain_id].clone();
188188
chain_client.process_inbox().await?;
189-
let short_chain_id = format!("{:?}", chain_id);
190189
join_set.spawn_blocking(move || {
191190
handle.block_on(
192191
async move {
@@ -207,7 +206,7 @@ where
207206
}
208207
.instrument(tracing::info_span!(
209208
"benchmark_chain_id",
210-
chain_id = short_chain_id
209+
chain_id = format!("{:?}", chain_id)
211210
)),
212211
)
213212
});
@@ -494,6 +493,7 @@ where
494493
);
495494
let cross_chain_message_delivery = chain_client.options().cross_chain_message_delivery;
496495
let mut num_sent_proposals = 0;
496+
let authenticated_signer = Some(Owner::from(key_pair.public()));
497497
loop {
498498
if shutdown_notifier.is_cancelled() {
499499
info!("Shutdown signal received, stopping benchmark");
@@ -506,7 +506,7 @@ where
506506
operations: operations.clone(),
507507
previous_block_hash: chain_client.block_hash(),
508508
height: chain_client.next_block_height(),
509-
authenticated_signer: Some(Owner::from(key_pair.public())),
509+
authenticated_signer,
510510
timestamp: chain_client.timestamp().max(Timestamp::now()),
511511
};
512512
let executed_block = local_node

0 commit comments

Comments
 (0)