Skip to content

Commit

Permalink
doc: remove invalid comments
Browse files Browse the repository at this point in the history
  • Loading branch information
CHr15F0x authored and Mirko-von-Leipzig committed Aug 10, 2023
1 parent 8d6bf1c commit 0199381
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions crates/pathfinder/src/p2p_network/sync_handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,6 @@ mod tests {
proptest! {
#[test]
fn forward((start, count, seed, num_blocks) in super::strategy::forward()) {
// Initialize storage once for this proptest, greatly increases performance
let (storage, from_db) = storage_with_seed(seed, num_blocks);

let from_db = overlapping::forward(from_db, start, count).map(|(header, _, _)| header).collect::<Vec<_>>();
Expand Down Expand Up @@ -859,10 +858,8 @@ mod tests {
#[test]
#[ignore]
fn forward((start, count, seed, num_blocks) in super::strategy::forward()) {
// Initialize storage once for this proptest, greatly increases performance
// static STORAGE: SeededStorage = OnceCell::new();
// let (storage, from_db) = STORAGE.get_or_init(|| {storage_with_seed(seed)}).clone();
let (storage, from_db) = storage_with_seed(seed, num_blocks);

let start_hash = match from_db.get(usize::try_from(start).unwrap()).map(|x| x.0.hash) {
Some(h) => h,
None => {
Expand Down Expand Up @@ -897,7 +894,6 @@ mod tests {
#[test]
#[ignore]
fn backward((start, count, seed, num_blocks) in super::strategy::backward()) {
// Initialize storage once for this proptest, greatly increases performance
let (storage, from_db) = storage_with_seed(seed, num_blocks);

let start_hash = match from_db.get(usize::try_from(start).unwrap()).map(|x| x.0.hash) {
Expand Down

0 comments on commit 0199381

Please sign in to comment.