Skip to content

Commit

Permalink
Remove unused generic
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianGCalderon committed Jul 11, 2024
1 parent 495f92f commit 719b717
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions replay/src/benchmark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ use starknet_api::{
};
use tracing::{error, info};

pub type BlockCachedData<T> = (
CachedState<T>,
pub type BlockCachedData = (
CachedState<OptionalStateReader<RpcStateReader>>,
BlockContext,
Vec<(TransactionHash, SNTransaction)>,
);
Expand All @@ -30,7 +30,7 @@ pub fn fetch_block_range_data(
block_start: BlockNumber,
block_end: BlockNumber,
chain: RpcChain,
) -> Vec<BlockCachedData<OptionalStateReader<RpcStateReader>>> {
) -> Vec<BlockCachedData> {
let mut block_caches = Vec::new();

for block_number in block_start.0..=block_end.0 {
Expand Down Expand Up @@ -74,7 +74,7 @@ pub fn fetch_block_range_data(
/// Executes the given block range, discarding any state changes applied to it
///
/// Can also be used to fill up the cache
pub fn execute_block_range(block_range_data: &mut Vec<BlockCachedData<impl StateReader>>) {
pub fn execute_block_range(block_range_data: &mut Vec<BlockCachedData>) {
for (state, block_context, transactions) in block_range_data {
// For each block

Expand Down

0 comments on commit 719b717

Please sign in to comment.