Skip to content

Commit

Permalink
fix(threading): update sample block for threading calc
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamesmallon1 committed Jan 5, 2024
1 parent 5ea40d9 commit 294c53e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utilities/threading.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ pub fn get_optimum_number_of_threads(client: Box<dyn BlockFetcher + Send>, rate_
let avg_time_per_request_ms = (0..sample_size)
.map(|_| {
let start = Instant::now();
client.get_block(5003).unwrap();
client.get_block(229996381).unwrap();
start.elapsed().as_millis() as u32
})
.sum::<u32>()
Expand Down

0 comments on commit 294c53e

Please sign in to comment.