Skip to content

Commit

Permalink
chore: remove #[async_trait] from PermanentStorage and TemporaryStora…
Browse files Browse the repository at this point in the history
…ge (#1148)
  • Loading branch information
carneiro-cw authored Jun 17, 2024
1 parent 53892fa commit 0420ec8
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 12 deletions.
2 changes: 0 additions & 2 deletions src/eth/storage/inmemory/inmemory_permanent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ use std::sync::RwLock;
use std::sync::RwLockReadGuard;
use std::sync::RwLockWriteGuard;

use async_trait::async_trait;
use indexmap::IndexMap;
use rand::rngs::StdRng;
use rand::seq::IteratorRandom;
Expand Down Expand Up @@ -131,7 +130,6 @@ impl Default for InMemoryPermanentStorage {
}
}

#[async_trait]
impl PermanentStorage for InMemoryPermanentStorage {
// -------------------------------------------------------------------------
// Block number operations
Expand Down
2 changes: 0 additions & 2 deletions src/eth/storage/inmemory/inmemory_temporary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ use std::sync::RwLockWriteGuard;

use anyhow::Context;
use anyhow::Ok;
use async_trait::async_trait;
use nonempty::NonEmpty;

use crate::eth::primitives::Account;
Expand Down Expand Up @@ -113,7 +112,6 @@ impl InMemoryTemporaryAccount {
}
}

#[async_trait]
impl TemporaryStorage for InMemoryTemporaryStorage {
// -------------------------------------------------------------------------
// Accounts and Slots
Expand Down
3 changes: 0 additions & 3 deletions src/eth/storage/permanent_storage.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use async_trait::async_trait;

use crate::eth::primitives::Account;
use crate::eth::primitives::Address;
use crate::eth::primitives::Block;
Expand All @@ -15,7 +13,6 @@ use crate::eth::primitives::StoragePointInTime;
use crate::eth::primitives::TransactionMined;

/// Permanent (committed) storage operations
#[async_trait]
pub trait PermanentStorage: Send + Sync {
// -------------------------------------------------------------------------
// Block number
Expand Down
2 changes: 0 additions & 2 deletions src/eth/storage/rocks/rocks_permanent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use std::sync::Arc;
use std::thread;

use anyhow::Context;
use async_trait::async_trait;

use super::rocks_state::RocksStorageState;
use super::types::AddressRocksdb;
Expand Down Expand Up @@ -56,7 +55,6 @@ impl RocksPermanentStorage {
}
}

#[async_trait]
impl PermanentStorage for RocksPermanentStorage {
// -------------------------------------------------------------------------
// Block number operations
Expand Down
3 changes: 0 additions & 3 deletions src/eth/storage/temporary_storage.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use async_trait::async_trait;

use crate::eth::primitives::Account;
use crate::eth::primitives::Address;
use crate::eth::primitives::BlockNumber;
Expand All @@ -12,7 +10,6 @@ use crate::eth::primitives::SlotIndex;
use crate::eth::primitives::TransactionExecution;

/// Temporary storage (in-between blocks) operations
#[async_trait]
pub trait TemporaryStorage: Send + Sync {
// -------------------------------------------------------------------------
// Block number
Expand Down

0 comments on commit 0420ec8

Please sign in to comment.