Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianGCalderon committed Dec 5, 2024
1 parent a300476 commit 8eb51e9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 1 addition & 3 deletions replay/src/benchmark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ use std::{error::Error, fs::File, path::Path, time::Duration};

use blockifier::{
context::BlockContext,
execution::{
call_info::CallInfo, contract_class::RunnableCompiledClass, entry_point::CallEntryPoint,
},
execution::{call_info::CallInfo, contract_class::RunnableCompiledClass},
state::{cached_state::CachedState, state_api::StateReader},
transaction::objects::TransactionExecutionInfo,
};
Expand Down
9 changes: 6 additions & 3 deletions replay/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
use std::thread;
use std::time::Duration;

use blockifier::state::cached_state::CachedState;
use blockifier::state::errors::StateError;
use blockifier::transaction::objects::{RevertError, TransactionExecutionInfo};
Expand All @@ -21,6 +18,8 @@ use {
execute_block_range, fetch_block_range_data, fetch_transaction_data, save_executions,
},
std::path::PathBuf,
std::thread,
std::time::Duration,
std::{ops::Div, time::Instant},
};

Expand Down Expand Up @@ -182,6 +181,10 @@ fn main() {
block_range_data
};

// We pause the main thread to differentiate
// caching from benchmarking from within a profiler
thread::sleep(Duration::from_secs(1));

{
let _benchmark_span = info_span!("benchmarking block range").entered();

Expand Down

0 comments on commit 8eb51e9

Please sign in to comment.