Skip to content

Commit

Permalink
Update node/sync/src/block_sync.rs
Browse files Browse the repository at this point in the history
Co-authored-by: ljedrz <[email protected]>
  • Loading branch information
kpandl and ljedrz authored Dec 18, 2024
1 parent 9f7c47f commit 88c5c6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/sync/src/block_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ impl<N: Network> BlockSync<N> {
// Acquire the requests write lock.
// Note: This lock must be held across the entire scope, due to asynchronous block responses
// from multiple peers that may be received concurrently.
let requests = self.requests.write();
let requests = self.requests.read();

// Determine if the request is complete.
let is_request_complete =
Expand Down

0 comments on commit 88c5c6a

Please sign in to comment.