Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-aranha-cw committed Jun 25, 2024
1 parent 8175129 commit a4b2804
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/eth/consensus/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ use crate::eth::consensus::Role;
use crate::eth::Consensus;
#[cfg(feature = "metrics")]
use crate::infra::metrics;
use crate::infra::metrics::timed;

#[cfg(feature = "metrics")]
mod label {
Expand All @@ -39,7 +40,7 @@ impl AppendEntryService for AppendEntryServiceImpl {
) -> Result<Response<AppendTransactionExecutionsResponse>, Status> {
#[cfg(feature = "metrics")]
let start = std::time::Instant::now();

let consensus = self.consensus.lock().await;
let request_inner = request.into_inner();

Expand Down Expand Up @@ -116,7 +117,7 @@ impl AppendEntryService for AppendEntryServiceImpl {
consensus.last_arrived_block_number.store(block_entry.number, Ordering::SeqCst);

tracing::info!(
last_last_arrived_block_number = last_last_arrived_block_number.clone(),
last_last_arrived_block_number = last_last_arrived_block_number,
new_last_arrived_block_number = consensus.last_arrived_block_number.load(Ordering::SeqCst),
"last arrived block number set",
);
Expand Down

0 comments on commit a4b2804

Please sign in to comment.