From aad26e534cad6602c8352a7df4a4f2a2b62545a6 Mon Sep 17 00:00:00 2001 From: gabriel-aranha-cw Date: Tue, 25 Jun 2024 14:58:24 -0300 Subject: [PATCH] lint --- src/eth/consensus/server.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/eth/consensus/server.rs b/src/eth/consensus/server.rs index 8c13fb28c..2c91d2e89 100644 --- a/src/eth/consensus/server.rs +++ b/src/eth/consensus/server.rs @@ -19,7 +19,6 @@ 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 { @@ -40,7 +39,7 @@ impl AppendEntryService for AppendEntryServiceImpl { ) -> Result, Status> { #[cfg(feature = "metrics")] let start = std::time::Instant::now(); - + let consensus = self.consensus.lock().await; let request_inner = request.into_inner();