Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
renancloudwalk committed Mar 14, 2024
1 parent 710b1d4 commit e46649c
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions src/eth/storage/embedded/mod.rs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down Expand Up @@ -86,7 +61,7 @@ impl PermanentStorage for EmbeddedPermanentStorage {
async fn increment_block_number(&self) -> Result<BlockNumber> {
let mut num = self.block_number.lock().await;
*num += 1;
Ok((*num))
Ok(*num)
}

async fn set_block_number(&self, number: BlockNumber) -> Result<()> {
Expand Down

0 comments on commit e46649c

Please sign in to comment.