Skip to content

Commit

Permalink
fix(sync): pending restarted in loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Mirko-von-Leipzig committed Feb 3, 2024
1 parent 1010f8b commit 5420216
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/pathfinder/src/state/sync/l2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ where
storage,
} = context;

let mut pending_handle = None;

'outer: loop {
// Get the next block from L2.
let (next, head_meta) = match &head {
Expand All @@ -114,8 +116,6 @@ where

let t_block = std::time::Instant::now();

let mut pending_handle = None;

let (block, commitments, state_update) = loop {
match download_block(
next,
Expand Down

0 comments on commit 5420216

Please sign in to comment.