diff --git a/src/eth/storage/embedded/mod.rs b/src/eth/storage/embedded/mod.rs index 1691be4fb..b19cfe81f 100644 --- a/src/eth/storage/embedded/mod.rs +++ b/src/eth/storage/embedded/mod.rs @@ -1,49 +1,24 @@ - use std::path::Path; - use std::sync::Arc; - use anyhow::Result; use async_trait::async_trait; - - - - - use rocksdb::Options; use rocksdb::DB; - - - - - - - - - - - use crate::eth::primitives::Account; use crate::eth::primitives::Address; use crate::eth::primitives::Block; use crate::eth::primitives::BlockNumber; use crate::eth::primitives::BlockSelection; - - - - use crate::eth::primitives::Hash; use crate::eth::primitives::LogFilter; use crate::eth::primitives::LogMined; - use crate::eth::primitives::Slot; use crate::eth::primitives::SlotIndex; use crate::eth::primitives::SlotSample; use crate::eth::primitives::StoragePointInTime; use crate::eth::primitives::TransactionMined; - use crate::eth::storage::PermanentStorage; use crate::eth::storage::StorageError; @@ -86,7 +61,7 @@ impl PermanentStorage for EmbeddedPermanentStorage { async fn increment_block_number(&self) -> Result { let mut num = self.block_number.lock().await; *num += 1; - Ok((*num)) + Ok(*num) } async fn set_block_number(&self, number: BlockNumber) -> Result<()> {